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

Support @NessieServerProperty annotations in nested tests #6548

Merged

Conversation

dimas-b
Copy link
Member

@dimas-b dimas-b commented Apr 10, 2023

  • @NessieServerProperty annotations are processed on all test classes starting from the root context.

  • Properties in inner / nested contexts take precedence over properties in outer contexts.

@dimas-b dimas-b requested a review from snazy April 10, 2023 20:01
Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

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

The changes overall look good to me.
But why the change to ITImplicitNamespaces?

@dimas-b
Copy link
Member Author

dimas-b commented Apr 11, 2023

But why the change to ITImplicitNamespaces?

This seemed to be the easiest and most relevant class to validate the fix. I know it looks odd with duplicate test methods in the main class and in the nested class, but it seems to be the only way to validate that config changes are effective.

Otherwise, we'd have to expose internal properties to tests, I guess, which would have a larger impact and is probably not really necessary for now.

@snazy
Copy link
Member

snazy commented Apr 11, 2023

Hmmm. But then let's at least add a comment to those.

@dimas-b dimas-b force-pushed the fix-server-config-in-nested-compat-tests branch from 74356a8 to 3ae947f Compare April 11, 2023 13:32
* `@NessieServerProperty` annotations are processed on all test
  classes starting from the root context.

* Properties in inner / nested contexts take precedence over
  properties in outer contexts.
@dimas-b dimas-b force-pushed the fix-server-config-in-nested-compat-tests branch from 3ae947f to 0dfdc0b Compare April 11, 2023 13:34
@dimas-b dimas-b requested a review from snazy April 11, 2023 13:35
@dimas-b dimas-b merged commit 98482ed into projectnessie:main Apr 11, 2023
25 checks passed
@dimas-b dimas-b deleted the fix-server-config-in-nested-compat-tests branch April 11, 2023 14:09
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.

None yet

2 participants