@@ -32,7 +32,7 @@ func TestAccProjectIamAuditConfig_basic(t *testing.T) {
3232 {
3333 Config : testAccProject_create (pid , pname , org ),
3434 Check : resource .ComposeTestCheckFunc (
35- testAccProjectExistingPolicy (pid ),
35+ testAccProjectExistingPolicy (t , pid ),
3636 ),
3737 },
3838 // Apply an IAM audit config
@@ -61,7 +61,7 @@ func TestAccProjectIamAuditConfig_multiple(t *testing.T) {
6161 {
6262 Config : testAccProject_create (pid , pname , org ),
6363 Check : resource .ComposeTestCheckFunc (
64- testAccProjectExistingPolicy (pid ),
64+ testAccProjectExistingPolicy (t , pid ),
6565 ),
6666 },
6767 // Apply an IAM audit config
@@ -95,7 +95,7 @@ func TestAccProjectIamAuditConfig_multipleAtOnce(t *testing.T) {
9595 {
9696 Config : testAccProject_create (pid , pname , org ),
9797 Check : resource .ComposeTestCheckFunc (
98- testAccProjectExistingPolicy (pid ),
98+ testAccProjectExistingPolicy (t , pid ),
9999 ),
100100 },
101101 // Apply an IAM audit config
@@ -124,7 +124,7 @@ func TestAccProjectIamAuditConfig_update(t *testing.T) {
124124 {
125125 Config : testAccProject_create (pid , pname , org ),
126126 Check : resource .ComposeTestCheckFunc (
127- testAccProjectExistingPolicy (pid ),
127+ testAccProjectExistingPolicy (t , pid ),
128128 ),
129129 },
130130 // Apply an IAM audit config
@@ -165,7 +165,7 @@ func TestAccProjectIamAuditConfig_remove(t *testing.T) {
165165 {
166166 Config : testAccProject_create (pid , pname , org ),
167167 Check : resource .ComposeTestCheckFunc (
168- testAccProjectExistingPolicy (pid ),
168+ testAccProjectExistingPolicy (t , pid ),
169169 ),
170170 },
171171 // Apply multiple IAM audit configs
@@ -179,7 +179,7 @@ func TestAccProjectIamAuditConfig_remove(t *testing.T) {
179179 {
180180 Config : testAccProject_create (pid , pname , org ),
181181 Check : resource .ComposeTestCheckFunc (
182- testAccProjectExistingPolicy (pid ),
182+ testAccProjectExistingPolicy (t , pid ),
183183 ),
184184 },
185185 },
@@ -204,7 +204,7 @@ func TestAccProjectIamAuditConfig_addFirstExemptMember(t *testing.T) {
204204 {
205205 Config : testAccProject_create (pid , pname , org ),
206206 Check : resource .ComposeTestCheckFunc (
207- testAccProjectExistingPolicy (pid ),
207+ testAccProjectExistingPolicy (t , pid ),
208208 ),
209209 },
210210 // Apply IAM audit config with no members
@@ -240,7 +240,7 @@ func TestAccProjectIamAuditConfig_removeLastExemptMember(t *testing.T) {
240240 {
241241 Config : testAccProject_create (pid , pname , org ),
242242 Check : resource .ComposeTestCheckFunc (
243- testAccProjectExistingPolicy (pid ),
243+ testAccProjectExistingPolicy (t , pid ),
244244 ),
245245 },
246246 // Apply IAM audit config with member
@@ -276,7 +276,7 @@ func TestAccProjectIamAuditConfig_updateNoExemptMembers(t *testing.T) {
276276 {
277277 Config : testAccProject_create (pid , pname , org ),
278278 Check : resource .ComposeTestCheckFunc (
279- testAccProjectExistingPolicy (pid ),
279+ testAccProjectExistingPolicy (t , pid ),
280280 ),
281281 },
282282 // Apply IAM audit config with DATA_READ
0 commit comments