Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement for CICD acceptance tests #36

Open
littlejo opened this issue Jul 11, 2024 · 1 comment
Open

Improvement for CICD acceptance tests #36

littlejo opened this issue Jul 11, 2024 · 1 comment

Comments

@littlejo
Copy link

littlejo commented Jul 11, 2024

My code is:

      - uses: opentofu/setup-opentofu@v1
        with:
          tofu_wrapper: false
      - run: go mod download
      - env:
          TF_ACC: "1"
          TF_ACC_PROVIDER_NAMESPACE: "hashicorp"
          TF_ACC_PROVIDER_HOST: "registry.opentofu.org"
        run: TF_ACC_TERRAFORM_PATH=$(which tofu) go test -v -cover ./cilium
        timeout-minutes: 10

Could you create automatically the environment variables?

Like that, my code would be clean:

      - uses: opentofu/setup-opentofu@v1
        with:
          tofu_wrapper: false
          acceptance_test: true
      - run: go mod download
      - run: go test -v -cover ./cilium
        timeout-minutes: 10
@ghost
Copy link

ghost commented Jul 11, 2024

Hey @littlejo thank you for this issue, we discussed it with the core team and would be open for a community PR to resolve this with the addition that the flag should be called provider_acceptance_test for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant