def test_create_mgmt_domain(self, proxy, mgmt_domain_name): '''Configure a management domain Arguments: proxy - a pytest fixture proxy to RwMcYang mgmt_domain_name - a pytest fixture for the management domain name Asserts: None ''' domain_config = RwMcYang.MgmtDomain(name=mgmt_domain_name) proxy.create_config('/mgmt-domain/domain', domain_config)
def test_create_mgmt_domain(self, proxy, mgmt_domain_name): '''Configure mgmt domain Asserts: If the launchpad configuration is created and updated succesfully. ''' xpath = '/mgmt-domain/domain' domain_config = RwMcYang.MgmtDomain(name=mgmt_domain_name) proxy.create_config(xpath, domain_config) xpath += "[name='{}']".format(mgmt_domain_name) proxy.merge_config(xpath, domain_config) response = proxy.get(xpath) assert response.launchpad.state == 'pending'
def test_create_mgmt_domain(self, proxy, mgmt_domain_name): '''Configure mgmt domain''' domain_config = RwMcYang.MgmtDomain(name=mgmt_domain_name) proxy.create_config('/mgmt-domain/domain', domain_config)