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

Refactor initTestTemplate/deployBundle/destroyBundle to not return errors #2017

Merged
merged 23 commits into from
Dec 16, 2024

Conversation

denik
Copy link
Contributor

@denik denik commented Dec 16, 2024

Changes

These test helpers were updated to handle the error internally and not return it. Since they have testing.T object, they can do so directly. On the caller side, this functions were always followed by require.NoError(t, err), that was cleaned up.

This approach helps reduce the setup/teardown boilerplate in the test cases.

Tests

Existing tests.

@denik denik enabled auto-merge December 16, 2024 08:24
@denik
Copy link
Contributor Author

denik commented Dec 16, 2024

@denik denik force-pushed the denik/refactor-tests branch from 461cc27 to 7a516c8 Compare December 16, 2024 10:32
@denik denik temporarily deployed to test-trigger-is December 16, 2024 10:32 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is December 16, 2024 10:32 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is December 16, 2024 10:53 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is December 16, 2024 10:53 — with GitHub Actions Inactive
@denik denik force-pushed the denik/refactor-tests branch from 83cc0d0 to 577f6a5 Compare December 16, 2024 11:42
@denik denik temporarily deployed to test-trigger-is December 16, 2024 11:42 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is December 16, 2024 11:42 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is December 16, 2024 11:54 — with GitHub Actions Inactive
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2017
  • Commit SHA: 7ea1009fc378e578a1655eca9452f9b048c69f70

Checks will be approved automatically on success.

@denik denik temporarily deployed to test-trigger-is December 16, 2024 11:55 — with GitHub Actions Inactive
@denik denik disabled auto-merge December 16, 2024 12:41
@denik denik merged commit e5b836a into main Dec 16, 2024
10 checks passed
@denik denik deleted the denik/refactor-tests branch December 16, 2024 12:41
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