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

Fixes apache#7004: making azure-key-valt refresh test stable. #7009

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JiriOndrusek
Copy link
Contributor

fixes #7004

I added a few logging messages, better deletion after the tests (directly via client, delay between registering refresh listeners and sending message and unique message regexp for the context refresh tests.

With this fix, the tests are stable and works in the native.

}

AzureKeyVaultUtil.deleteSecretImmediately(secretName);
// following code marks events in the hu as read, which might be handy for developers
Copy link
Contributor

Choose a reason for hiding this comment

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

So finally, those commented lines are not needed anymore ?

Copy link
Contributor Author

@JiriOndrusek JiriOndrusek Feb 14, 2025

Choose a reason for hiding this comment

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

I left some typos fixes un-commited on my file system, so I added them.

Thought the explanation, why the code is there commented, was missing.

I added an explanation . The result is:

            // meant to be commented.
            // during development, it may be handy to mark eventhub as completely read. (in case the test is not reading all the messages by itself)
            // Please uncomment the rest of the code to make cursor reset to the latest position after test execution

            //            following code moves the cursor of the hub to the latest position, thus marking all events as read
            //            partition 0 is hardcoded (the resource script creates only one partition)
            //            by default this functionality should not be executed, as the eventbus might be shared for more tests/purposes
            //            even if event stays, it is removed by retention policy in some time (i.e. 1 hpr)

Does it makes sense to you?

@JiriOndrusek JiriOndrusek changed the title better refresh Fixes apache#7004: making azure-key-valt refresh test stable. Feb 14, 2025
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.

Azure-key-vault: some tests might be unstable
3 participants