Feat: Add cloud plugin cost management to admin section (#76547)
* feat: add cost management to admin and put adaptive metrics and log volume under it * test: fix applinks test * chore: fix lint error * remove "new" from feature toggle description --------- Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
co-authored by
Ashley Harrison
parent
0f7233bdf6
commit
de1ed216f4
@@ -33,4 +33,15 @@ func TestNavTreeRoot(t *testing.T) {
|
||||
require.Equal(t, "1", treeRoot.Children[0].Id)
|
||||
require.Equal(t, "4", treeRoot.Children[1].Id)
|
||||
})
|
||||
t.Run("FindByURL is able to find a navItem by url", func(t *testing.T) {
|
||||
treeRoot := NavTreeRoot{
|
||||
Children: []*NavLink{
|
||||
{Id: "1", Url: "/"},
|
||||
{Id: "2", Url: "/org"},
|
||||
{Id: "3", Url: "/org/users"},
|
||||
},
|
||||
}
|
||||
require.Equal(t, "2", treeRoot.FindByURL("/org").Id)
|
||||
require.Equal(t, "3", treeRoot.FindByURL("/org/users").Id)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user