@@ -344,7 +344,7 @@ func TestAccAAPJob_UpdateWithNewInventoryId(t *testing.T) {
344
344
resource .TestMatchResourceAttr (resourceName , "url" , regexp .MustCompile ("^/api(/controller)?/v2/jobs/[0-9]*/$" )),
345
345
testAccCheckJobUpdate (& jobURLBefore , true ),
346
346
// Wait for the job to finish so the inventory can be deleted
347
- testAccCheckJobPause ("aap_job.test" ),
347
+ testAccCheckJobPause (resourceName ),
348
348
),
349
349
},
350
350
},
@@ -476,10 +476,10 @@ func TestAccAAPJob_disappears(t *testing.T) {
476
476
resource .TestMatchResourceAttr (resourceName , "job_type" , regexp .MustCompile ("^(run|check)$" )),
477
477
resource .TestMatchResourceAttr (resourceName , "url" , regexp .MustCompile ("^/api(/controller)?/v2/jobs/[0-9]*/$" )),
478
478
// Wait for the job to finish so the inventory can be deleted
479
- testAccCheckJobPause ("aap_job.test" ),
479
+ testAccCheckJobPause (resourceName ),
480
480
),
481
481
},
482
- // Confirm the job is finished, then delete directly via API, outside of terraform.
482
+ // Confirm the job is finished (fewer options in status) , then delete directly via API, outside of terraform.
483
483
{
484
484
Config : testAccBasicJob (jobTemplateID ),
485
485
Check : resource .ComposeAggregateTestCheckFunc (
0 commit comments