File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -722,3 +722,29 @@ def test_show_cluster_without_shares(tmodule):
722722}
723723 """ .strip ()
724724 )
725+
726+
727+ def test_show_password_filter_hidden (tmodule ):
728+ _example_cfg_1 (tmodule )
729+ out = tmodule .show (password_filter = smb .enums .PasswordFilter .HIDDEN )
730+ assert 'resources' in out
731+ res = out ['resources' ]
732+ assert len (res ) == 4
733+ ja = [r for r in res if r ['resource_type' ] == 'ceph.smb.join.auth' ]
734+ assert ja
735+ join_auth = ja [0 ]
736+ assert join_auth ['auth' ]['username' ] == 'testadmin'
737+ assert join_auth ['auth' ]['password' ] == '****************'
738+
739+
740+ def test_show_password_filter_b64 (tmodule ):
741+ _example_cfg_1 (tmodule )
742+ out = tmodule .show (password_filter = smb .enums .PasswordFilter .BASE64 )
743+ assert 'resources' in out
744+ res = out ['resources' ]
745+ assert len (res ) == 4
746+ ja = [r for r in res if r ['resource_type' ] == 'ceph.smb.join.auth' ]
747+ assert ja
748+ join_auth = ja [0 ]
749+ assert join_auth ['auth' ]['username' ] == 'testadmin'
750+ assert join_auth ['auth' ]['password' ] == 'UGFzc3cwcmQ='
You can’t perform that action at this time.
0 commit comments