|
78 | 78 | description: This is a test description
|
79 | 79 | physical_address: Hollywood, CA, 90210
|
80 | 80 | shipping_address: Hollywood, CA, 90210
|
81 |
| - latitude: 10.1 |
82 |
| - longitude: 12.2 |
| 81 | + latitude: "22.169141" |
| 82 | + longitude: "-100.994041" |
83 | 83 | contact_name: Jenny
|
84 | 84 | contact_phone: 867-5309
|
85 | 85 | contact_email: jenny@changednumber.com
|
|
105 | 105 | - test_four['site']['description'] == "This is a test description"
|
106 | 106 | - test_four['site']['physical_address'] == "Hollywood, CA, 90210"
|
107 | 107 | - test_four['site']['shipping_address'] == "Hollywood, CA, 90210"
|
108 |
| - - test_four['site']['latitude'] == "10.100000" |
109 |
| - - test_four['site']['longitude'] == "12.200000" |
| 108 | + - test_four['site']['latitude'] == "22.169141" |
| 109 | + - test_four['site']['longitude'] == "-100.994041" |
110 | 110 | - test_four['site']['contact_name'] == "Jenny"
|
111 | 111 | - test_four['site']['contact_phone'] == "867-5309"
|
112 | 112 | - test_four['site']['contact_email'] == "jenny@changednumber.com"
|
113 | 113 | - test_four['site']['comments'] == "### Placeholder"
|
114 | 114 | - test_four['site']['slug'] == "test_california"
|
115 | 115 |
|
| 116 | +- name: "NETBOX_SITE_IDEM: Idempotency - Create duplicate site with all parameters" |
| 117 | + netbox.netbox.netbox_site: |
| 118 | + netbox_url: http://localhost:32768 |
| 119 | + netbox_token: 0123456789abcdef0123456789abcdef01234567 |
| 120 | + data: |
| 121 | + name: Test - California |
| 122 | + status: Planned |
| 123 | + region: Test Region |
| 124 | + tenant: Test Tenant |
| 125 | + facility: EquinoxCA7 |
| 126 | + asn: 65001 |
| 127 | + time_zone: America/Los Angeles |
| 128 | + description: This is a test description |
| 129 | + physical_address: Hollywood, CA, 90210 |
| 130 | + shipping_address: Hollywood, CA, 90210 |
| 131 | + latitude: "22.169141" |
| 132 | + longitude: "-100.994041" |
| 133 | + contact_name: Jenny |
| 134 | + contact_phone: 867-5309 |
| 135 | + contact_email: jenny@changednumber.com |
| 136 | + comments: "### Placeholder" |
| 137 | + slug: "test_california" |
| 138 | + state: present |
| 139 | + register: test_results |
| 140 | + |
| 141 | +- name: "NETBOX_SITE_IDEM: (ASSERT) Idempotency - Duplicate device site with all parameters" |
| 142 | + assert: |
| 143 | + that: |
| 144 | + - test_results is not changed |
| 145 | + - test_results['site']['name'] == "Test - California" |
| 146 | + - test_results['msg'] == "site Test - California already exists" |
| 147 | + - test_results['site']['status'] == "planned" |
| 148 | + - test_results['site']['region'] == 1 |
| 149 | + - test_results['site']['tenant'] == 1 |
| 150 | + - test_results['site']['facility'] == "EquinoxCA7" |
| 151 | + - test_results['site']['asn'] == 65001 |
| 152 | + - test_results['site']['time_zone'] == "America/Los_Angeles" |
| 153 | + - test_results['site']['description'] == "This is a test description" |
| 154 | + - test_results['site']['physical_address'] == "Hollywood, CA, 90210" |
| 155 | + - test_results['site']['shipping_address'] == "Hollywood, CA, 90210" |
| 156 | + - test_results['site']['latitude'] == "22.169141" |
| 157 | + - test_results['site']['longitude'] == "-100.994041" |
| 158 | + - test_results['site']['contact_name'] == "Jenny" |
| 159 | + - test_results['site']['contact_phone'] == "867-5309" |
| 160 | + - test_results['site']['contact_email'] == "jenny@changednumber.com" |
| 161 | + - test_results['site']['comments'] == "### Placeholder" |
| 162 | + - test_results['site']['slug'] == "test_california" |
| 163 | + |
116 | 164 | - name: "5 - Delete site within netbox"
|
117 | 165 | netbox.netbox.netbox_site:
|
118 | 166 | netbox_url: http://localhost:32768
|
|
0 commit comments