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

Add missing TestNamespace to ScaledJob validation test template #5989

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

jkyros
Copy link
Contributor

@jkyros jkyros commented Jul 26, 2024

This scaledjob test template was missing its namespace.

  • It doesn't generally matter for the test -- the test is just checking if the webhook works. It doesn't care where the scaledjob ends up
  • It does matter though if you run this test in a more restrictive environment where you can't write to the default namespace -- it fails with a namespace-related creation error instead of the expected no triggers defined in the ScaledObject/ScaledJob error

This just adds the namespace to the template so it's consistent with the other ones in the test suite.

Checklist

This scaledjob test template was missing its namespace, which doesn't
generally matter for the test -- the test is just checking if the
webhook works, it doesn't care where the scaledjob ends up.

Where it does matter, is if you happen to run this test suite in a more
restrictive environment where you can't write to the default namespace,
because you fail with a namespace-related creation error instead of the
expected "no triggers defined in the ScaledObject/ScaledJob" error.

This just adds the namespace to the template so it's just like all the
other ones in the test suite.

Signed-off-by: John Kyros <jkyros@redhat.com>
@jkyros jkyros requested a review from a team as a code owner July 26, 2024 22:58
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Nice catch!

@JorTurFer
Copy link
Member

JorTurFer commented Jul 29, 2024

/run-e2e scaled_job_validation
Update: You can check the progress here

@JorTurFer JorTurFer enabled auto-merge (squash) July 29, 2024 08:57
@JorTurFer JorTurFer merged commit bcdba69 into kedacore:main Jul 29, 2024
20 checks passed
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