This is an automated email from the ASF dual-hosted git repository.
squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 88cdc0b90 Fix #6854: check stable error prefixes in
TestGenerateKeystore
88cdc0b90 is described below
commit 88cdc0b90b429469356ad106e992214087348b0c
Author: Sarthak <[email protected]>
AuthorDate: Tue Sep 29 03:46:11 2026 +0530
Fix #6854: check stable error prefixes in TestGenerateKeystore
Signed-off-by: Sarthak <[email protected]>
---
pkg/util/jvm/keystore_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/util/jvm/keystore_test.go b/pkg/util/jvm/keystore_test.go
index 9ac9b4f4b..d8d44b8ca 100644
--- a/pkg/util/jvm/keystore_test.go
+++ b/pkg/util/jvm/keystore_test.go
@@ -42,12 +42,12 @@ func TestGenerateKeystore(t *testing.T) {
data = [][]byte{{0}, {1}}
err = GenerateKeystore(ctx, ksDir, "my-ks", NewKeystorePassword(), data)
require.Error(t, err)
- assert.Equal(t, "keytool error: java.io.IOException: keystore password
was incorrect: exit status 1", err.Error())
+ assert.Contains(t, err.Error(), "keytool error:")
// Incorrect password format
err = GenerateKeystore(ctx, ksDir, "my-ks", "", data)
require.Error(t, err)
- assert.Equal(t, "Illegal option: my-ks: exit status 1", err.Error())
+ assert.Contains(t, err.Error(), "Illegal option:")
}