@@ -17,14 +17,14 @@ def setUp(self):
1717
1818 def test_secret (self ):
1919 c = oca .Client ('test:test' )
20- assert c .one_auth == 'test:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 '
20+ assert c .one_auth == 'test:test '
2121
2222 def test_one_auth (self ):
2323 os .environ ["ONE_AUTH" ] = os .path .join (os .path .dirname (oca .__file__ ),
2424 'tests/fixtures/one_auth' )
2525 try :
2626 c = oca .Client ()
27- secret = 'test:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 '
27+ secret = 'test:test '
2828 assert c .one_auth == secret
2929 finally :
3030 os .environ ["ONE_AUTH" ] = ''
@@ -33,7 +33,7 @@ def test_default_user_path(self):
3333 os .environ ["ONE_AUTH" ] = os .path .join (os .path .dirname (oca .__file__ ),
3434 'tests/fixtures/one_auth' )
3535 c = oca .Client ()
36- assert c .one_auth == 'test:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 '
36+ assert c .one_auth == 'test:test '
3737
3838 @raises (oca .OpenNebulaException )
3939 def test_wrong_default_user_path (self ):
@@ -46,10 +46,6 @@ def test_invalid_secret(self):
4646 'tests/fixtures/one_auth' )
4747 c = oca .Client ('testtest' )
4848
49- def test_with_plain (self ):
50- c = oca .Client ('test:plain:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3' )
51- assert c .one_auth == 'test:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3'
52-
5349 def test_addres (self ):
5450 c = oca .Client ('test:test' , "http://8.8.8.8:2633/RPC2" )
5551 assert c .one_address == "http://8.8.8.8:2633/RPC2"
0 commit comments