Skip to content

Commit

Permalink
Merge branch 'sebastian/prod-2721-think-up-a-test-strategy-for-plural…
Browse files Browse the repository at this point in the history
…-up' of github.com:pluralsh/plural-cli into sebastian/prod-2721-think-up-a-test-strategy-for-plural-up
  • Loading branch information
floreks committed Nov 27, 2024
2 parents c752967 + 9e11f93 commit 610af77
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,12 @@ jobs:
# ARM_CLIENT_ID: ${{ secrets.E2E_AZURE_CLIENT_ID }}
# ARM_TENANT_ID: ${{ secrets.E2E_AZURE_TENANT_ID }}
run: |
terraform init -upgrade
terraform apply -auto-approve
terraform destroy -auto-approve
mv az-test /usr/local/bin/az-test
chmod +x /usr/local/bin/az-test
az-test
# terraform init -upgrade
# terraform apply -auto-approve
# terraform destroy -auto-approve
# - name: Run tests
# env:
# VENOM_VAR_provider: azure
Expand Down
Binary file added az-test
Binary file not shown.
1 change: 1 addition & 0 deletions pkg/up/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (tf *terraformCmd) outputs() (map[string]Output, error) {

func (tf *terraformCmd) run() (err error) {
for tf.retries >= 0 {
fmt.Println(tf.dir, tf.cmd, tf.args)
args := append([]string{tf.cmd}, tf.args...)
cmd := exec.Command("terraform", args...)
cmd.Dir = tf.dir
Expand Down
6 changes: 6 additions & 0 deletions test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ terraform {
source = "hashicorp/azurerm"
version = "3.106.1" # 3.40.0 doesn't work
}
azapi = {
source = "azure/azapi"
}
}
}

Expand All @@ -17,6 +20,9 @@ provider "azurerm" {
}
}

provider "azapi" {
}

resource "random_string" "random" {
length = 5
upper = false
Expand Down

0 comments on commit 610af77

Please sign in to comment.