mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
改进:model资源支持rbac认证,需要打开enable_rbac选项,默认关闭。非model资源还不支持
This commit is contained in:
@@ -29,6 +29,9 @@ func TestAst(t *testing.T) {
|
||||
{`server.disks[0].contains("medium_type")`, true},
|
||||
{`server.disk[0].contains("medium_type")`, true},
|
||||
{`server.disks[0].contains("backend")`, false},
|
||||
{`server.keys().contains("os_type", "disks")`, true},
|
||||
{`server.keys() == "os_type"`, true},
|
||||
{`server.keys() == "os_type1"`, false},
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
|
||||
Reference in New Issue
Block a user