Skip to content

Commit 967b2f4

Browse files
Jira WDT-250 test the encrypted value returned from aliases
1 parent 5c4ac02 commit 967b2f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/test/python/alias_password_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from wlsdeploy.aliases.model_constants import PASSWORD_ENCRYPTED
1414
from wlsdeploy.aliases.wlst_modes import WlstModes
1515
from wlsdeploy.logging.platform_logger import PlatformLogger
16+
from wlsdeploy.util.cla_utils import CommandLineArgUtil
1617
from wlsdeploy.util.model_context import ModelContext
1718

1819

@@ -23,12 +24,13 @@ class AliasPasswordTestCase(unittest.TestCase):
2324
_wlst_password_name = "Password"
2425
_wlst_password_encrypted_name = "PasswordEncrypted"
2526

27+
_passphrase = 'do a deer'
2628
_password = 'welcome1'
27-
_encrypted_password = '{AES}BR5Lw+UuwM4ZmFcTu2GX5C2w0Jcr6E30uhZvhoyXjYU='
29+
_encrypted_password = '{AES}YVhmeU1jMFVqVGhhSzFrYnJRQzdQdS8zMG1heVlrSUk6WDNjbmUxWDVxZ0dFMjRaNDpoYmpVeTFZZzBEST0='
2830
_encrypted_password_bytes = jarray.array(_encrypted_password, 'b')
2931

3032
def setUp(self):
31-
model_context = ModelContext("test", {})
33+
model_context = ModelContext("test", {CommandLineArgUtil.PASSPHRASE_SWITCH: self._passphrase})
3234
self.aliases = Aliases(model_context, wlst_mode=WlstModes.OFFLINE, wls_version=self._wls_version)
3335
self.online_aliases = Aliases(model_context, wlst_mode=WlstModes.ONLINE, wls_version=self._wls_version)
3436

0 commit comments

Comments
 (0)