diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-10-09 14:50:28 +0200 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-10-09 14:50:28 +0200 |
commit | 97f7d0cd33684ed88ea2ff80c578dbc8009f5000 (patch) | |
tree | b9b7c9d5baf45ea5796ce19a599352917bfbd12c /src/account | |
parent | d75505f629e290ae9feb647017e349a027921c41 (diff) | |
download | openlmi-providers-97f7d0cd33684ed88ea2ff80c578dbc8009f5000.tar.gz openlmi-providers-97f7d0cd33684ed88ea2ff80c578dbc8009f5000.tar.xz openlmi-providers-97f7d0cd33684ed88ea2ff80c578dbc8009f5000.zip |
Use PG_ComputerSystem by default.
And get rid of sblim-cmpi-base dependency.
It would be nice if our tests have an option to select Linux_ComputerSystem
or PG_ComputerSystem in the future...
Diffstat (limited to 'src/account')
-rw-r--r-- | src/account/doc/source/usage.rst | 4 | ||||
-rw-r--r-- | src/account/test/TestAccount.py | 2 | ||||
-rw-r--r-- | src/account/test/TestGroup.py | 2 | ||||
-rw-r--r-- | src/account/test/TestService.py | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/account/doc/source/usage.rst b/src/account/doc/source/usage.rst index 7a2638a..f8a5e89 100644 --- a/src/account/doc/source/usage.rst +++ b/src/account/doc/source/usage.rst @@ -71,7 +71,7 @@ For user creation we have to use which will create user with descired attributes:: # get computer system - cs = c.root.cimv2.Linux_ComputerSystem.first_instance() + cs = c.root.cimv2.PG_ComputerSystem.first_instance() # get service lams = c.root.cimv2.LMI_AccountManagementService.first_instance() # invoke method, print result @@ -84,7 +84,7 @@ Similarly like creating user, creating groups are don in :ref:`CreateGroup <LMI-AccountManagementService-CreateGroup>` method:: # get computer system - cs = c.root.cimv2.Linux_ComputerSystem.first_instance() + cs = c.root.cimv2.PG_ComputerSystem.first_instance() # get service lams = c.root.cimv2.LMI_AccountManagementService.first_instance() # invoke method, print result diff --git a/src/account/test/TestAccount.py b/src/account/test/TestAccount.py index 5763c4d..53cb429 100644 --- a/src/account/test/TestAccount.py +++ b/src/account/test/TestAccount.py @@ -49,7 +49,7 @@ class TestAccount(AccountBase): # make sure the account will not exist clean_account(self.user_name) computer_system = self.wbemconnection.ExecQuery('WQL', - 'select * from Linux_ComputerSystem')[0] + 'select * from PG_ComputerSystem')[0] lams = self.wbemconnection.ExecQuery('WQL', 'select * from LMI_AccountManagementService')[0] self.wbemconnection.InvokeMethod("CreateAccount", lams.path, diff --git a/src/account/test/TestGroup.py b/src/account/test/TestGroup.py index 6c294eb..1ad104d 100644 --- a/src/account/test/TestGroup.py +++ b/src/account/test/TestGroup.py @@ -47,7 +47,7 @@ class TestGroup(AccountBase): # make sure the group will not exist clean_group(self.group_name) computer_system = self.wbemconnection.ExecQuery('WQL', - 'select * from Linux_ComputerSystem')[0] + 'select * from PG_ComputerSystem')[0] lams = self.wbemconnection.ExecQuery('WQL', 'select * from LMI_AccountManagementService')[0] self.wbemconnection.InvokeMethod("CreateGroup", lams.path, diff --git a/src/account/test/TestService.py b/src/account/test/TestService.py index 62cdf9d..8881b64 100644 --- a/src/account/test/TestService.py +++ b/src/account/test/TestService.py @@ -34,9 +34,9 @@ class TestService(AccountBase): # make sure the account will not exist clean_account(self.user_name) computer_system = self.wbemconnection.ExecQuery('WQL', - 'select * from Linux_ComputerSystem')[0] + 'select * from PG_ComputerSystem')[0] lams = self.wbemconnection.ExecQuery('WQL', - 'select * from LMI_AccountManagementService')[0] + 'select * from PG_AccountManagementService')[0] # create account and test all parameters shell = "testshell" |