Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 committed Aug 28, 2024
1 parent bce9624 commit ec33657
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/targets/latest/tasks/location.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
Expand Down

0 comments on commit ec33657

Please sign in to comment.