Skip to content

Commit

Permalink
dont run packer tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-hashicorp committed Feb 15, 2024
1 parent bfe9333 commit c23a850
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestAcc_dataSourcePackerBucketNames(t *testing.T) {
config := testConfig(testAccConfigBuildersToString(bucketNames))

// Must not be Parallel, requires that no buckets exist at start of test
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t, map[string]bool{"aws": false, "azure": false}) },
ProtoV6ProviderFactories: testProtoV6ProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion internal/providersdkv2/data_source_packer_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestAcc_dataSourcePackerImage_Simple(t *testing.T) {
var iteration *models.HashicorpCloudPackerIteration
var build *models.HashicorpCloudPackerBuild

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t, map[string]bool{"aws": false, "azure": false})
upsertRegistry(t)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAcc_dataSourcePackerIteration_Simple(t *testing.T) {

var iteration *models.HashicorpCloudPackerIteration

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t, map[string]bool{"aws": false, "azure": false})
upsertRegistry(t)
Expand Down
2 changes: 1 addition & 1 deletion internal/providersdkv2/data_source_packer_run_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestAcc_dataSourcePackerRunTask(t *testing.T) {
config := testConfig(testAccConfigBuildersToString(runTask))

// Must not be Parallel, conflicts with test for the equivalent resource
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t, map[string]bool{"aws": false, "azure": false})
upsertRegistry(t)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccPackerChannelAssignment_SimpleSetUnset(t *testing.T) {

baseAssignment := testAccPackerAssignmentBuilderBase("SimpleSetUnset", fmt.Sprintf("%q", bucketSlug), fmt.Sprintf("%q", channelSlug))

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t, map[string]bool{"aws": false, "azure": false})
upsertRegistry(t)
Expand Down
2 changes: 1 addition & 1 deletion internal/providersdkv2/resource_packer_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestAccPackerChannel(t *testing.T) {
unrestrictedChannelConfig := testAccPackerChannelBuilderFromChannel(channelConfig, "false")
restrictedChannelConfig := testAccPackerChannelBuilderFromChannel(channelConfig, "true")

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t, map[string]bool{"aws": false, "azure": false})
upsertRegistry(t)
Expand Down
2 changes: 1 addition & 1 deletion internal/providersdkv2/resource_packer_run_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestAccPackerRunTask(t *testing.T) {
var preStep4HmacKey string

// Must not be Parallel, conflicts with test for the equivalent data source
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t, map[string]bool{"aws": false, "azure": false})
upsertRegistry(t)
Expand Down

0 comments on commit c23a850

Please sign in to comment.