From ec336578637573ebf865ab5f4b960697fbc4beb1 Mon Sep 17 00:00:00 2001 From: Jacob Date: Wed, 28 Aug 2024 14:51:30 -0400 Subject: [PATCH] Add test cases --- tests/integration/targets/latest/tasks/location.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/targets/latest/tasks/location.yml b/tests/integration/targets/latest/tasks/location.yml index 64eed8fa..4b6650ae 100644 --- a/tests/integration/targets/latest/tasks/location.yml +++ b/tests/integration/targets/latest/tasks/location.yml @@ -50,7 +50,7 @@ url: "{{ nautobot_url }}" token: "{{ nautobot_token }}" name: Test Location - location_type: "{{ parent_location_type['key'] }}" + location_type: "{{ parent_location_type['value']['name'] }}" description: Test Location Description register: test_update @@ -69,7 +69,7 @@ name: Test Location 2 status: Active description: Test Location 2 Description - location_type: "{{ child_location_type['key'] }}" + location_type: "{{ child_location_type['value']['name'] }}" parent_location: "{{ test_create_min['location']['id'] }}" tenant: Test Tenant facility: EquinoxCA7 @@ -106,7 +106,7 @@ name: Test Location 2 status: Active description: Test Location 2 Description - location_type: "{{ child_location_type['key'] }}" + location_type: "{{ child_location_type['value']['name'] }}" parent: "{{ test_create_min['location']['id'] }}" tenant: Test Tenant facility: EquinoxCA7 @@ -167,7 +167,6 @@ - set_fact: fist_location: "{{ lookup('networktocode.nautobot.lookup', 'locations', api_endpoint=nautobot_url, token=nautobot_token, api_filter='name=\"Test Location\" location_type=\"My Parent Location Type\"') }}" - - name: "8 - Delete location" networktocode.nautobot.location: url: "{{ nautobot_url }}"