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

Include acceptance tests in integration tests #2242

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

denik
Copy link
Contributor

@denik denik commented Jan 27, 2025

No description provided.

@denik denik temporarily deployed to test-trigger-is January 27, 2025 15:45 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 27, 2025 15:51 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 27, 2025 15:56 — with GitHub Actions Inactive
@denik denik force-pushed the denik/acceptance-integration branch from b6fee09 to 3284091 Compare January 27, 2025 16:16
@denik denik temporarily deployed to test-trigger-is January 27, 2025 16:16 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 27, 2025 20:03 — with GitHub Actions Inactive
github-merge-queue bot pushed a commit that referenced this pull request Jan 28, 2025
… utf8 (#2244)

## Changes
- Do not start replacement / comparison if file is too large or not
valid utf-8.
- This helps to prevent replacements if there is accidentally a large
binary (e.g. terraform).

## Tests
Found this problem when working on
#2242 -- the tests tried to
applied replacements on terraform binary and crashed. With this change,
an error is reported instead.
github-merge-queue bot pushed a commit that referenced this pull request Jan 28, 2025
## Changes
- If CLOUD_ENV is set to do not override with dummy value. This allows
running acceptance tests as integration tests.
- Needed for #2242

## Tests
Manually run the test suite against dogfood. `CLOUD_ENV=aws go test
./acceptance`
@denik denik force-pushed the denik/acceptance-integration branch from 53cbbee to 18e71cb Compare January 28, 2025 11:52
@denik denik temporarily deployed to test-trigger-is January 28, 2025 11:52 — with GitHub Actions Inactive
@denik denik force-pushed the denik/acceptance-integration branch from 18e71cb to d4003d7 Compare January 28, 2025 12:03
@denik denik temporarily deployed to test-trigger-is January 28, 2025 12:03 — with GitHub Actions Inactive
@denik denik force-pushed the denik/acceptance-integration branch from d4003d7 to 6b9be38 Compare January 28, 2025 13:57
@denik denik temporarily deployed to test-trigger-is January 28, 2025 13:57 — with GitHub Actions Inactive
@denik denik mentioned this pull request Jan 28, 2025
denik added a commit that referenced this pull request Jan 28, 2025
It uses workspace.profile, which is used before variables are interpolated,
which breaks when this test is run against cloud.

Needed for #2242
@denik denik temporarily deployed to test-trigger-is January 28, 2025 14:12 — with GitHub Actions Inactive
denik added a commit that referenced this pull request Jan 28, 2025
This does not work when this test is run against cloud.

Needed for #2242
denik added a commit that referenced this pull request Jan 28, 2025
This does not work when this test is run against cloud.

Needed for #2242
@denik denik force-pushed the denik/acceptance-integration branch from 6392550 to 8ad39c9 Compare January 28, 2025 14:16
@denik denik temporarily deployed to test-trigger-is January 28, 2025 14:16 — with GitHub Actions Inactive
denik added a commit that referenced this pull request Jan 28, 2025
This does not work when this test is run against cloud.

Needed for #2242
@denik denik temporarily deployed to test-trigger-is January 28, 2025 14:28 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 28, 2025 15:57 — with GitHub Actions Inactive
@@ -0,0 +1,12 @@
[[Repls]]
Old = '- (user_name|service_principal_name): \$USERNAME'
New = '- user_name_OR_service_principal_name: $$USERNAME'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you include a comment explaining why these replacements need to happen? Good for posterity.

Call 'make vendor' otherwise it's not building
@denik denik force-pushed the denik/acceptance-integration branch from 65c44cc to 9971970 Compare January 29, 2025 14:17
github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2025
This is something terraform provider expects.

Related to #2242
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

Successfully merging this pull request may close these issues.

2 participants