Skip to content

Conversation

jshum2479
Copy link
Member

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

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 3, 2023
@ddsharpe
Copy link
Member

ddsharpe commented Feb 6, 2023

<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))
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's unintentional, fixed

@robertpatrick robertpatrick merged commit e01581e into main Feb 7, 2023
@robertpatrick robertpatrick deleted the collect-jdbc-wallet branch February 7, 2023 01:00
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

5 participants