-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Fix and unmute package upgrade tests #83043
Conversation
@elasticsearchmachine run elasticsearch-ci/packaging-upgrade-tests |
Pinging @elastic/es-delivery (Team:Delivery) |
@@ -75,15 +75,13 @@ public void test10SecurityAutoConfiguredOnPackageInstall() throws Exception { | |||
public void test20SecurityNotAutoConfiguredOnReInstallation() throws Exception { | |||
// we are testing force upgrading in the current version | |||
// In such a case, security remains configured from the initial installation, we don't run it again. | |||
Optional<String> autoConfigDirName = getAutoConfigDirName(installation); | |||
byte[] transportKeystore = Files.readAllBytes(installation.config("certs").resolve("transport.p12")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be using AUTOCONFIG_DIRNAME
instead of "certs"
here?
assertThat(getAutoConfigDirName(installation).isPresent(), is(true)); | ||
assertThat(getAutoConfigDirName(installation).get(), equalTo(autoConfigDirName.get())); | ||
// Since we did not auto-configure the second time, the keystore should be the one we generated the first time, above | ||
assertThat(transportKeystore, equalTo(Files.readAllBytes(installation.config("certs").resolve("transport.p12")))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, should we be using AUTOCONFIG_DIRNAME
instead of "certs"
here?
a |
💚 CLA has been signed |
3660224
to
240e375
Compare
Fixes PackageUpgradeTests (cherry picked from commit 514bec1)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Fixes package upgrade tests and unmutes failing tests
resolves: #79950, #76283