Skip to content

Commit 8eb974c

Browse files
committed
add resource validation tests
1 parent 54ec15d commit 8eb974c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aquasec/resource_application_scope_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ func TestAquasecApplicationScope(t *testing.T) {
2222
Config: testAccCheckApplicationScope(name, description),
2323
Check: resource.ComposeTestCheckFunc(
2424
testAccCheckApplicationScopeExists("aquasec_application_scope.terraformap"),
25+
resource.TestCheckResourceAttr("aquasec_application_scope.terraformap", "name", name),
26+
resource.TestCheckResourceAttr("aquasec_application_scope.terraformap", "categories.0.artifacts.0.image.0.expression", "v1 && v2 && v3"),
27+
resource.TestCheckResourceAttr("aquasec_application_scope.terraformap", "categories.0.workloads.0.kubernetes.0.expression", "v1 && v2"),
28+
resource.TestCheckResourceAttr("aquasec_application_scope.terraformap", "categories.0.infrastructure.0.kubernetes.0.expression", "v1"),
2529
),
2630
},
2731
{

0 commit comments

Comments
 (0)