url encode brackets
@@ -84,10 +84,12 @@ def test_BcfProxy():
'/data/controller/applications/bcf/info/endpoint-manager/tenant': 'sample_tenants.json',
'/data/controller/applications/bcf/info/endpoint-manager/segment': 'sample_segments.json',
'/data/controller/applications/bcf/info/endpoint-manager/endpoint': 'sample_endpoints.json',
- '/data/controller/applications/bcf/span-fabric[name=%22SPAN_FABRIC%22]': 'sample_span_fabric.json',
# %22 = url-encoded double quotes
- '/data/controller/applications/bcf/span-fabric[name=%22SPAN_FABRIC%22][dest-interface-group=%22INTERFACE_GROUP%22]': 'sample_span_fabric.json',
- '/data/controller/applications/bcf/span-fabric[name=%22empty%22][dest-interface-group=%22empty%22]': 'sample_span_fabric_empty.json',
+ # %5B = url-encoded [
+ # %5D = url-encoded ]
+ '/data/controller/applications/bcf/span-fabric%5Bname=%22SPAN_FABRIC%22%5D': 'sample_span_fabric.json',
+ '/data/controller/applications/bcf/span-fabric%5Bname=%22SPAN_FABRIC%22%5D%5Bdest-interface-group=%22INTERFACE_GROUP%22%5D': 'sample_span_fabric.json',
+ '/data/controller/applications/bcf/span-fabric%5Bname=%22empty%22%5D%5Bdest-interface-group=%22empty%22%5D': 'sample_span_fabric_empty.json',
}
proxy = None
controller = {'URI': 'http://localhost',
