File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
from wlsdeploy .aliases .model_constants import PASSWORD_ENCRYPTED
14
14
from wlsdeploy .aliases .wlst_modes import WlstModes
15
15
from wlsdeploy .logging .platform_logger import PlatformLogger
16
+ from wlsdeploy .util .cla_utils import CommandLineArgUtil
16
17
from wlsdeploy .util .model_context import ModelContext
17
18
18
19
@@ -23,12 +24,13 @@ class AliasPasswordTestCase(unittest.TestCase):
23
24
_wlst_password_name = "Password"
24
25
_wlst_password_encrypted_name = "PasswordEncrypted"
25
26
27
+ _passphrase = 'do a deer'
26
28
_password = 'welcome1'
27
- _encrypted_password = '{AES}BR5Lw+UuwM4ZmFcTu2GX5C2w0Jcr6E30uhZvhoyXjYU ='
29
+ _encrypted_password = '{AES}YVhmeU1jMFVqVGhhSzFrYnJRQzdQdS8zMG1heVlrSUk6WDNjbmUxWDVxZ0dFMjRaNDpoYmpVeTFZZzBEST0 ='
28
30
_encrypted_password_bytes = jarray .array (_encrypted_password , 'b' )
29
31
30
32
def setUp (self ):
31
- model_context = ModelContext ("test" , {})
33
+ model_context = ModelContext ("test" , {CommandLineArgUtil . PASSPHRASE_SWITCH : self . _passphrase })
32
34
self .aliases = Aliases (model_context , wlst_mode = WlstModes .OFFLINE , wls_version = self ._wls_version )
33
35
self .online_aliases = Aliases (model_context , wlst_mode = WlstModes .ONLINE , wls_version = self ._wls_version )
34
36
You can’t perform that action at this time.
0 commit comments