1getAllObjects = [ 2 {'id': 100, 3 'name': 'secgroup1', 4 'description': 'Securitygroup1'}, 5 {'id': 104, 6 'name': 'secgroup2'}, 7 {'id': 110} 8] 9 10getRules = [ 11 {'id': 100, 12 'direction': 'egress', 13 'ethertype': 'IPv4'} 14] 15 16guest_dict = {'id': 5000, 17 'hostname': 'test', 18 'primaryBackendIpAddress': '10.3.4.5', 19 'primaryIpAddress': '169.23.123.43'} 20 21getObject = { 22 'id': 100, 23 'name': 'secgroup1', 24 'description': 'Securitygroup1', 25 'networkComponentBindings': [{'networkComponentId': 1000, 26 'networkComponent': {'id': 1000, 27 'port': 0, 28 'guest': guest_dict}}, 29 {'networkComponentId': 1001, 30 'networkComponent': {'id': 1001, 31 'port': 1, 32 'guest': guest_dict}}], 33 'rules': getRules 34} 35 36createObject = {'id': 100, 37 'name': 'secgroup1', 38 'description': 'Securitygroup1', 39 'createDate': '2017-05-05T12:44:43-06:00'} 40editObject = True 41deleteObject = True 42addRules = {"requestId": "addRules", 43 "rules": "[{'direction': 'ingress', " 44 "'portRangeMax': '', " 45 "'portRangeMin': '', " 46 "'ethertype': 'IPv4', " 47 "'securityGroupId': 100, " 48 "'remoteGroupId': '', " 49 "'id': 100}]"} 50editRules = {'requestId': 'editRules'} 51removeRules = {'requestId': 'removeRules'} 52attachNetworkComponents = {'requestId': 'interfaceAdd'} 53detachNetworkComponents = {'requestId': 'interfaceRemove'} 54