mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-08 21:17:43 +03:00
Fix Ruby tests for User changes
This commit is contained in:
parent
85108d4e9d
commit
f8903ad813
@ -24,11 +24,11 @@ module OpenNebula
|
||||
if user.id == 0
|
||||
user.name.should eql('oneadmin')
|
||||
user['PASSWORD'].should eql('f13a1234833436f71ab846572d251c0d40391e72')
|
||||
user['ENABLED'].should eql('True')
|
||||
user['ENABLED'].should eql('1')
|
||||
elsif user.id == 1
|
||||
user.name.should eql('dan')
|
||||
user['PASSWORD'].should eql('d22a12348334v33f71ba846572d25250d40701e72')
|
||||
user['ENABLED'].should eql('False')
|
||||
user['ENABLED'].should eql('0')
|
||||
end
|
||||
}
|
||||
end
|
||||
@ -53,11 +53,11 @@ module OpenNebula
|
||||
if user.id == 0
|
||||
user.name.should eql('oneadmin')
|
||||
user['PASSWORD'].should eql('f13a1234833436f71ab846572d251c0d40391e72')
|
||||
user['ENABLED'].should eql('True')
|
||||
user['ENABLED'].should eql('1')
|
||||
elsif user.id == 1
|
||||
user.name.should eql('dan')
|
||||
user['PASSWORD'].should eql('d22a12348334v33f71ba846572d25250d40701e72')
|
||||
user['ENABLED'].should eql('False')
|
||||
user['ENABLED'].should eql('0')
|
||||
end
|
||||
}
|
||||
end
|
||||
|
2
src/oca/ruby/test/fixtures/userpool.xml
vendored
2
src/oca/ruby/test/fixtures/userpool.xml
vendored
@ -3,7 +3,7 @@
|
||||
<ID>0</ID>
|
||||
<NAME>oneadmin</NAME>
|
||||
<PASSWORD>f13a1234833436f71ab846572d251c0d40391e72</PASSWORD>
|
||||
<ENABLED>0</ENABLED>
|
||||
<ENABLED>1</ENABLED>
|
||||
</USER>
|
||||
<USER>
|
||||
<ID>1</ID>
|
||||
|
Loading…
Reference in New Issue
Block a user