-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,71 +49,34 @@ jobs: | |
# Run acceptance tests in a matrix with Terraform CLI versions | ||
test: | ||
executor: | ||
name: go/default | ||
tag: &go_version "1.21.3" | ||
environment: | ||
runs-on: ubuntu-latest | ||
env: | ||
# sc-146360 - overrides the default timeout of 3000ms when reaching checkpoint-api.hashicorp.com | ||
CHECKPOINT_TIMEOUT: 15000 | ||
steps: | ||
- checkout | ||
- go/mod-download-cached | ||
- run: | ||
name: Run unit tests | ||
command: TESTARGS="-v" make test | ||
- run: | ||
name: Test Data Sources | ||
command: TESTARGS="-run TestAccDataSource" make testacc-with-retry | ||
- run: | ||
name: Test Access Token Resource | ||
command: TESTARGS="-run TestAccAccessToken" make testacc-with-retry | ||
- run: | ||
name: Test Audit Log Subscription Resource | ||
command: TESTARGS="-run TestAccAuditLogSubscription" make testacc-with-retry | ||
- run: | ||
name: Test Custom Role Resource | ||
command: TESTARGS="-run TestAccCustomRole" make testacc-with-retry | ||
- run: | ||
name: Test Destination Resource | ||
command: TESTARGS="-run TestAccDestination" make testacc-with-retry | ||
- run: | ||
name: Test Environment Resource | ||
command: TESTARGS="-run TestAccEnvironment" make testacc-with-retry | ||
- run: | ||
name: Test Feature Flag Resource | ||
command: TESTARGS="-run TestAccFeatureFlag_" make testacc-with-retry | ||
- run: | ||
name: Test Feature Flag Environment Resource | ||
command: TESTARGS="-run TestAccFeatureFlagEnvironment" make testacc-with-retry | ||
- run: | ||
name: Test Flag Trigger Resource | ||
command: TESTARGS="-run TestAccFlagTrigger" make testacc-with-retry | ||
- run: | ||
name: Test Metric Resource | ||
command: TESTARGS="-run TestAccMetric" make testacc-with-retry | ||
- run: | ||
name: Test Project Resource | ||
command: TESTARGS="-run TestAccProject" make testacc-with-retry | ||
- run: | ||
name: Test Relay Proxy Configuration Resource | ||
command: TESTARGS="-run TestAccRelayProxy" make testacc-with-retry | ||
- run: | ||
name: Test Segment Resource | ||
command: TESTARGS="-run TestAccSegment" make testacc-with-retry | ||
- run: | ||
name: Test Team Members | ||
command: | | ||
TESTARGS="-run TestAccTeamMember_CreateGeneric" make testacc-with-retry | ||
TESTARGS="-run TestAccTeamMember_UpdateGeneric" make testacc-with-retry | ||
TESTARGS="-run TestAccTeamMember_CreateWithCustomRole" make testacc-with-retry | ||
TESTARGS="-run TestAccTeamMember_UpdateWithCustomRole" make testacc-with-retry | ||
- run: | ||
name: Test Team Resource | ||
command: TESTARGS="-run TestAccTeam_" make testacc-with-retry | ||
- run: | ||
name: Test Team Role Mapping Resource | ||
command: TESTARGS="-run TestAccTeamRoleMapping_" make testacc-with-retry | ||
- run: | ||
name: Test Webhook Resource | ||
command: TESTARGS="-run TestAccWebhook" make testacc-with-retry | ||
- notify-slack-of-failures | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "1.21.3" | ||
- run: go mod download | ||
- run: TESTARGS="-v" make test | ||
- run: TESTARGS="-run TestAccDataSource" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccAccessToken" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccAuditLogSubscription" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccCustomRole" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccDestination" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccEnvironment" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccFeatureFlag_" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccFeatureFlagEnvironment" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccFlagTrigger" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccMetric" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccProject" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccRelayProxy" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccSegment" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccTeamMember_CreateGeneric" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccTeamMember_UpdateGeneric" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccTeamMember_CreateWithCustomRole" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccTeamMember_UpdateWithCustomRole" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccTeam_" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccTeamRoleMapping_" make testacc-with-retry | ||
- run: TESTARGS="-run TestAccWebhook" make testacc-with-retry |