Skip to content

Commit

Permalink
Fixing access level condition test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoros committed Sep 29, 2023
1 parent 6c4a2d6 commit ad1898f
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func testAccAccessContextManagerAccessLevelCondition_basicTest(t *testing.T) {
vpcName := fmt.Sprintf("test-vpc-%s", acctest.RandString(t, 10))

expected := map[string]interface{}{
"ipSubnetworks": []interface{}{"192.0.4.0/24"},
"members": []interface{}{"user:[email protected]", "user:[email protected]", fmt.Sprintf("serviceAccount:%s@%s.iam.gserviceaccount.com", serviceAccountName, project)},
"devicePolicy": map[string]interface{}{
"requireCorpOwned": true,
Expand All @@ -39,11 +38,11 @@ func testAccAccessContextManagerAccessLevelCondition_basicTest(t *testing.T) {
"vpcNetworkSources": []interface{}{
map[string]interface{}{
"vpcSubnetwork": map[string]interface{}{
"network": fmt.Sprintf("//compute.googleapis.com/projects/%s/global/networks/%s", project, vpcName),
"vpcIpSubnetworks": []interface{}{"20.0.5.0/24"}
}
}
}
"network": fmt.Sprintf("//compute.googleapis.com/projects/%s/global/networks/%s", project, vpcName),
"vpcIpSubnetworks": []interface{}{"20.0.5.0/24"},
},
},
},
}

acctest.VcrTest(t, resource.TestCase{
Expand Down

0 comments on commit ad1898f

Please sign in to comment.