Skip to content
Snippets Groups Projects
Commit 6235134c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

EuCNC24: Fixed functional test IETF

parent 6c378752
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!172Resolve "(CTTC) Extend gNMI-OpenConfig SBI driver"
...@@ -43,7 +43,11 @@ def test_service_ietf_creation( ...@@ -43,7 +43,11 @@ def test_service_ietf_creation(
svc1_data = json.load(f) svc1_data = json.load(f)
URL = '/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services' URL = '/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services'
do_rest_post_request(URL, body=svc1_data, logger=LOGGER, expected_status_codes={201}) do_rest_post_request(URL, body=svc1_data, logger=LOGGER, expected_status_codes={201})
service_uuid = svc1_data['ietf-l3vpn-svc:l3vpn-svc']['vpn-services']['vpn-service'][0]['vpn-id'] vpn_id = svc1_data['ietf-l3vpn-svc:l3vpn-svc']['vpn-services']['vpn-service'][0]['vpn-id']
URL = '/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services/vpn-service={:s}/'.format(vpn_id)
service_data = do_rest_get_request(URL, logger=LOGGER, expected_status_codes={200})
service_uuid = service_data['service-id']
storage['svc-uuid'] = service_uuid storage['svc-uuid'] = service_uuid
# Verify service was created # Verify service was created
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment