X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fra%2Fpytest%2Ftest_launchpad.py;fp=rwlaunchpad%2Fra%2Fpytest%2Ftest_launchpad.py;h=a6f5ae78cd10434291430800f1db6b14a74fcb20;hb=7b75903dd891795d4426612fd4de76c0f51cf17e;hp=81f5b548d2a7bbb18c081d0f292c9f5ad21c11ec;hpb=3fdf6a93baec6d042f79a44973a3d21ddf37bafc;p=osm%2FSO.git diff --git a/rwlaunchpad/ra/pytest/test_launchpad.py b/rwlaunchpad/ra/pytest/test_launchpad.py index 81f5b548..a6f5ae78 100644 --- a/rwlaunchpad/ra/pytest/test_launchpad.py +++ b/rwlaunchpad/ra/pytest/test_launchpad.py @@ -25,9 +25,9 @@ import pytest import gi -gi.require_version('RwsdnYang', '1.0') +gi.require_version('RwsdnalYang', '1.0') -from gi.repository import RwsdnYang +from gi.repository import RwsdnalYang @pytest.mark.setup('sdn') @pytest.mark.feature('sdn') @@ -39,8 +39,8 @@ class TestSdnSetup: Asserts: SDN name and accout type. ''' - proxy = mgmt_session.proxy(RwsdnYang) - sdn_account = RwsdnYang.SDNAccount( + proxy = mgmt_session.proxy(RwsdnalYang) + sdn_account = RwsdnalYang.SDNAccount( name=sdn_account_name, account_type=sdn_account_type) xpath = "/sdn-accounts/sdn-account-list[name='%s']" % sdn_account_name @@ -57,7 +57,7 @@ class TestSdn: Asserts: sdn_account.account_type is what was configured ''' - proxy = mgmt_session.proxy(RwsdnYang) + proxy = mgmt_session.proxy(RwsdnalYang) xpath = "/sdn-accounts/sdn-account-list[name='%s']" % sdn_account_name sdn_account = proxy.get_config(xpath) assert sdn_account.account_type == sdn_account_type @@ -68,7 +68,7 @@ class TestSdn: class TestSdnTeardown: def test_delete_odl_sdn_account(self, mgmt_session, sdn_account_name): '''Unconfigure sdn account''' - proxy = mgmt_session.proxy(RwsdnYang) + proxy = mgmt_session.proxy(RwsdnalYang) xpath = "/sdn-accounts/sdn-account-list[name='%s']" % sdn_account_name proxy.delete_config(xpath)