-
Notifications
You must be signed in to change notification settings - Fork 91
Collect jdbc wallet #1379
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
Collect jdbc wallet #1379
Conversation
<02-04-2023 00:20:04> Executing shell command: target/weblogic-deploy/bin/archiveHelper.sh add databaseWallet -source src/test/resources/cwallet.sso -wallet_name acmeWallet -archive_file target/test-output/test35DiscoverDomainWithJDBCWallet/gen-wallet-archive.zip <02-04-2023 00:20:04> Test log: target/test-output/test35DiscoverDomainWithJDBCWallet <02-04-2023 00:20:04> Executing shell command: target/weblogic-deploy/bin/createDomain.sh -oracle_home /u01/oracle -domain_home ./target/domains/domain2-discover35 -model_file src/test/resources/simple-topology-jdbcwallet.yaml -archive_file target/test-output/test35DiscoverDomainWithJDBCWallet/gen-wallet-archive.zip <02-04-2023 00:20:15> ========== FAILED test [Test 35: test create and discover domain with jdbc wallet] method=test35DiscoverDomainWithJDBCWallet: 0 min, 11 sec ========== |
for entry in archive_entries: | ||
if entry.startswith(WLSDeployArchive.ARCHIVE_DB_WALLETS_DIR): | ||
if os.path.isdir(entry): | ||
name = wallet_names.add(os.path.basename(entry)) |
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.
Set().add() does not return anything, so name will be void for this code path. I don't think that is what you intended.
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.
That's unintentional, fixed
core/src/main/python/wlsdeploy/tool/discover/common_resources_discoverer.py
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
The PR collects the wallet of the data source if the connection property is pointing to a directory or file in the archive during discovery