Skip to content

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

Merged
merged 22 commits into from
Feb 7, 2023
Merged

Collect jdbc wallet #1379

merged 22 commits into from
Feb 7, 2023

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

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants