'status="deleted"> </vnicProfile></pair> '
'</inConfigs> </configConfMos>')
-ASSOCIATE_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
- 'inHierarchical="true"> <inConfigs> <pair key='
- '"fabric/lan/profiles/vnic-New Profile/cl-New '
- 'Profile Client"> <vmVnicProfCl dcName=".*" '
- 'descr="" dn="fabric/lan/profiles/vnic-'
- 'New Profile/cl-New Profile Client"name="New '
- 'Profile Client" orgPath=".*" status="created" '
- 'swName="default$"> </vmVnicProfCl>'
- '</pair> </inConfigs> </configConfMos>')
+ASSOC_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
+ 'inHierarchical="true"> <inConfigs> <pair key='
+ '"fabric/lan/profiles/vnic-New Profile/cl-New '
+ 'Profile Client"> <vmVnicProfCl dcName=".*" '
+ 'descr="" dn="fabric/lan/profiles/vnic-'
+ 'New Profile/cl-New Profile Client"name="New '
+ 'Profile Client" orgPath=".*" status="created" '
+ 'swName="default$"> </vmVnicProfCl>'
+ '</pair> </inConfigs> </configConfMos>')
class TestUCSDriver(unittest.TestCase):
LOG.debug("test_create_profile_post - END")
def test_create_profile_client_data(self,
- expected_output=
- ASSOCIATE_PROFILE_OUTPUT):
+ expected_output=ASSOC_PROFILE_OUTPUT):
"""
Tests creation of profile client post Data
"""
'OUTPUT -j %s-OUTPUT\n-A FORWARD -j %s-FORWARD'
'\n-A %s-filter -j DROP\n-A %s-INPUT -s 0/0 -d'
' 192.168.0.2 -j %s-filter\n' % (bn, bn, bn, bn,
- bn, bn, bn, bn, bn, bn, bn, bn)), root_helper=
- self.root_helper).AndReturn(None)
+ bn, bn, bn, bn, bn, bn, bn, bn)),
+ root_helper=self.root_helper).AndReturn(None)
self.iptables.execute(['/sbin/iptables-save', '-t', 'nat'],
root_helper=self.root_helper).AndReturn('')