- Notifications
You must be signed in to change notification settings - Fork 89
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
Collect jdbc wallet #1379
Changes from 15 commits
Commits
Show all changes
22 commits Select commit Hold shift + click to select a range
7e1b7d0
add wallet collection logic
jshum2479 5759ff4
Merge branch 'main' into collect-jdbc-wallet
jshum2479 1493bae
undo unnecessary changes
jshum2479 c76f496
refactor
jshum2479 133654d
Merge branch 'main' into collect-jdbc-wallet
jshum2479 5f078db
fix bug
jshum2479 67583a7
fix bug
jshum2479 826f163
add integration test
jshum2479 3b1cdd1
make sure wallet available when updating ds
jshum2479 1bbed2b
restore integration tests
jshum2479 778af85
Fix npe
jshum2479 a903c54
add error when wallet file not found
jshum2479 bcc9309
copyright change
jshum2479 452ce47
add info for not trying to collect if remote
jshum2479 2ef21f2
fix remote discovery and skip archive
jshum2479 7d8f1e1
fix problem where domain directory does not exist yet before extracti…
jshum2479 68be854
undo model change
jshum2479 aab8842
fix compare test result
jshum2479 3f6ebdf
fix compare result
jshum2479 ef732f2
fix sonar issue
jshum2479 f355905
sonar fix
jshum2479 91a6bf7
sonar code smell
jshum2479 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
| @@ -2,7 +2,7 @@ | |
Copyright (c) 2017, 2023, Oracle Corporation and/or its affiliates. All rights reserved. | ||
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
""" | ||
import os | ||
import os, sets | ||
import shutil | ||
| ||
from java.io import File | ||
| @@ -401,6 +401,20 @@ def extract_database_wallet(self, wallet_name=WLSDeployArchive.DEFAULT_RCU_WALLE | |
self.__logger.exiting(class_name=self.__class_name, method_name=_method_name, result=resulting_wallet_path) | ||
return resulting_wallet_path | ||
| ||
def extract_all_database_wallets(self): | ||
archive_entries = self.get_archive_entries() | ||
wallet_names = sets.Set() | ||
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)) | ||
| ||
else: | ||
name = os.path.basename(os.path.dirname(entry)) | ||
| ||
wallet_names.add(name) | ||
for wallet_name in wallet_names: | ||
self.extract_database_wallet(wallet_name) | ||
| ||
def extract_opss_wallet(self): | ||
""" | ||
Extract the and unzip the OPSS wallet, if present, and return the path to the wallet directory. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.