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

chore: Adjust e2e tests for createdAt and createdBy new v1alpha Project.Spec fields #144

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

nieomylnieja
Copy link
Contributor

@nieomylnieja nieomylnieja commented Jun 11, 2024

Motivation

With the introduction of new server-side computed fields for v1alpha Project.Spec: createdAt and createdBy the tests started failing as the helper function _assert_objects_existence was comparing almost the whole object.
This is too much for a simple assertion that checks if the object was actually applied, so I added additional filter to re-map the objects, extracting the basic minimum for comparison.

Ref: https://github.com/nobl9/sloctl/actions/runs/9466510383/job/26078347437

Related Changes

Testing

Run make test/e2e, remember about supplying the right env vars OR run https://github.com/nobl9/sloctl/actions/workflows/e2e-tests-dispatch.yml with this branch as target.

@nieomylnieja nieomylnieja merged commit b55268a into main Jun 11, 2024
8 checks passed
@nieomylnieja nieomylnieja deleted the adjust-e2e-tests-with-new-project-fields branch June 11, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants