foreman_netbox 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/app/interactors/foreman_netbox/delete_host/delete_device.rb +1 -1
- data/app/interactors/foreman_netbox/delete_host/delete_virtual_machine.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/find.rb +3 -3
- data/app/interactors/foreman_netbox/sync_host/sync_device/organizer.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/save_netbox_url.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_device_role/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_device_role/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/sync_manufacturer/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/sync_manufacturer/find.rb +2 -2
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/create.rb +2 -2
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/update.rb +1 -3
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_site/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_device/sync_site/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_tags/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_tags/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_tenant/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_tenant/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/find.rb +2 -2
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/organizer.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/save_netbox_url.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/sync_cluster_type/create.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/sync_cluster_type/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/create.rb +8 -8
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/create.rb +2 -2
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/delete.rb +2 -4
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/find.rb +1 -1
- data/app/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/update.rb +1 -3
- data/app/lib/foreman_netbox/api.rb +11 -2
- data/app/services/foreman_netbox/netbox_parameters.rb +2 -2
- data/app/services/foreman_netbox/netbox_parameters_comparator.rb +2 -2
- data/db/migrate/20230303095650_fix_netbox_settings_category_to_dsl.rb +0 -2
- data/lib/foreman_netbox/engine.rb +47 -40
- data/lib/foreman_netbox/version.rb +1 -1
- data/lib/tasks/foreman_netbox_tasks.rake +0 -48
- data/test/fixtures/netbox_device_raw_data.json +1 -1
- data/test/integration/foreman_netbox/sync_k8s_physical_host_test.rb +1 -1
- data/test/integration/foreman_netbox/sync_rhel_physical_host_test.rb +1 -1
- data/test/integration/foreman_netbox/sync_rhel_virtual_host_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_device/create_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_device/save_netbox_url_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/update_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/delete_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/delete_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/update_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/update_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_device/sync_site/update_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_device/update_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_tenant/update_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/save_netbox_url_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/update_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/delete_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/delete_test.rb +2 -2
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/update_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/update_test.rb +1 -1
- data/test/interactors/foreman_netbox/sync_host/sync_virtual_machine/update_test.rb +2 -2
- data/test/test_plugin_helper.rb +1 -1
- data/test/unit/foreman_netbox/api_test.rb +52 -0
- metadata +57 -56
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_netbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dmTECH GmbH
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: dry-validation
|
@@ -122,7 +121,6 @@ dependencies:
|
|
122
121
|
- - "~>"
|
123
122
|
- !ruby/object:Gem::Version
|
124
123
|
version: 0.1.2
|
125
|
-
description:
|
126
124
|
email:
|
127
125
|
- opensource@dm.de
|
128
126
|
executables: []
|
@@ -287,11 +285,11 @@ files:
|
|
287
285
|
- test/services/foreman_netbox/netbox_attributes_test.rb
|
288
286
|
- test/services/foreman_netbox/netbox_parameters_comparator_test.rb
|
289
287
|
- test/test_plugin_helper.rb
|
288
|
+
- test/unit/foreman_netbox/api_test.rb
|
290
289
|
homepage: https://github.com/dm-drogeriemarkt/foreman_netbox
|
291
290
|
licenses:
|
292
291
|
- GPL-3.0
|
293
292
|
metadata: {}
|
294
|
-
post_install_message:
|
295
293
|
rdoc_options: []
|
296
294
|
require_paths:
|
297
295
|
- lib
|
@@ -299,77 +297,80 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
299
297
|
requirements:
|
300
298
|
- - ">="
|
301
299
|
- !ruby/object:Gem::Version
|
302
|
-
version: '
|
300
|
+
version: '2.7'
|
301
|
+
- - "<"
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '4'
|
303
304
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
304
305
|
requirements:
|
305
306
|
- - ">="
|
306
307
|
- !ruby/object:Gem::Version
|
307
308
|
version: '0'
|
308
309
|
requirements: []
|
309
|
-
rubygems_version: 3.
|
310
|
-
signing_key:
|
310
|
+
rubygems_version: 3.6.7
|
311
311
|
specification_version: 4
|
312
312
|
summary: Adds integration with NetBox
|
313
313
|
test_files:
|
314
|
-
- test/integration/foreman_netbox/sync_rhel_physical_host_test.rb
|
315
|
-
- test/integration/foreman_netbox/sync_rhel_virtual_host_test.rb
|
316
|
-
- test/integration/foreman_netbox/sync_k8s_physical_host_test.rb
|
317
|
-
- test/models/host/managed_test.rb
|
318
|
-
- test/models/foreman_netbox/location_test.rb
|
319
|
-
- test/models/foreman_netbox/nics/base_test.rb
|
320
|
-
- test/models/foreman_netbox/usergroup_test.rb
|
321
|
-
- test/models/foreman_netbox/netbox_facet_test.rb
|
322
314
|
- test/factories/host.rb
|
323
315
|
- test/factories/netbox_facet.rb
|
324
|
-
- test/fixtures/
|
325
|
-
- test/fixtures/netbox_device_raw_data.json
|
316
|
+
- test/fixtures/facts/k8s_physical_host.json
|
326
317
|
- test/fixtures/facts/rhel_physical_host.json
|
327
318
|
- test/fixtures/facts/rhel_virtual_host.json
|
328
|
-
- test/fixtures/
|
329
|
-
- test/
|
330
|
-
- test/
|
331
|
-
- test/
|
332
|
-
- test/
|
333
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/create_test.rb
|
334
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/sync_cluster_type/find_test.rb
|
335
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/sync_cluster_type/create_test.rb
|
336
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/find_test.rb
|
337
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/update_test.rb
|
338
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/delete_test.rb
|
339
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/find_test.rb
|
340
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/update_test.rb
|
341
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/create_test.rb
|
342
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/delete_test.rb
|
343
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/find_test.rb
|
344
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/update_test.rb
|
345
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/create_test.rb
|
346
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/create_test.rb
|
347
|
-
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/save_netbox_url_test.rb
|
348
|
-
- test/interactors/foreman_netbox/sync_host/sync_tenant/find_test.rb
|
349
|
-
- test/interactors/foreman_netbox/sync_host/sync_tenant/update_test.rb
|
350
|
-
- test/interactors/foreman_netbox/sync_host/sync_tenant/create_test.rb
|
319
|
+
- test/fixtures/netbox_device_raw_data.json
|
320
|
+
- test/fixtures/netbox_virtual_machine_raw_data.json
|
321
|
+
- test/integration/foreman_netbox/sync_k8s_physical_host_test.rb
|
322
|
+
- test/integration/foreman_netbox/sync_rhel_physical_host_test.rb
|
323
|
+
- test/integration/foreman_netbox/sync_rhel_virtual_host_test.rb
|
351
324
|
- test/interactors/foreman_netbox/sync_host/organizer_test.rb
|
352
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/
|
353
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_site/update_test.rb
|
354
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_site/create_test.rb
|
325
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/create_test.rb
|
355
326
|
- test/interactors/foreman_netbox/sync_host/sync_device/find_test.rb
|
356
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/
|
327
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/save_netbox_url_test.rb
|
328
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_role/create_test.rb
|
329
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_role/find_test.rb
|
330
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/create_test.rb
|
357
331
|
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/find_test.rb
|
358
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/update_test.rb
|
359
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/sync_manufacturer/find_test.rb
|
360
332
|
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/sync_manufacturer/create_test.rb
|
361
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/
|
333
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/sync_manufacturer/find_test.rb
|
334
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_device_type/update_test.rb
|
335
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/create_test.rb
|
336
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/delete_test.rb
|
337
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/find_test.rb
|
338
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/create_test.rb
|
362
339
|
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/delete_test.rb
|
363
340
|
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/find_test.rb
|
364
341
|
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/update_test.rb
|
365
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/sync_ip_addresses/create_test.rb
|
366
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/delete_test.rb
|
367
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/find_test.rb
|
368
342
|
- test/interactors/foreman_netbox/sync_host/sync_device/sync_interfaces/update_test.rb
|
369
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/
|
370
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/
|
371
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/
|
372
|
-
- test/interactors/foreman_netbox/sync_host/sync_device/
|
373
|
-
- test/interactors/foreman_netbox/sync_host/
|
343
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_site/create_test.rb
|
344
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_site/find_test.rb
|
345
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/sync_site/update_test.rb
|
346
|
+
- test/interactors/foreman_netbox/sync_host/sync_device/update_test.rb
|
347
|
+
- test/interactors/foreman_netbox/sync_host/sync_tenant/create_test.rb
|
348
|
+
- test/interactors/foreman_netbox/sync_host/sync_tenant/find_test.rb
|
349
|
+
- test/interactors/foreman_netbox/sync_host/sync_tenant/update_test.rb
|
350
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/create_test.rb
|
351
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/find_test.rb
|
352
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/save_netbox_url_test.rb
|
353
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/create_test.rb
|
354
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/find_test.rb
|
355
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/sync_cluster_type/create_test.rb
|
356
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/sync_cluster_type/find_test.rb
|
357
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_cluster/update_test.rb
|
358
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/create_test.rb
|
359
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/delete_test.rb
|
360
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/find_test.rb
|
361
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/create_test.rb
|
362
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/delete_test.rb
|
363
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/find_test.rb
|
364
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/sync_ip_addresses/update_test.rb
|
365
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/sync_interfaces/update_test.rb
|
366
|
+
- test/interactors/foreman_netbox/sync_host/sync_virtual_machine/update_test.rb
|
367
|
+
- test/jobs/foreman_netbox/sync_host_job_test.rb
|
368
|
+
- test/models/foreman_netbox/location_test.rb
|
369
|
+
- test/models/foreman_netbox/netbox_facet_test.rb
|
370
|
+
- test/models/foreman_netbox/nics/base_test.rb
|
371
|
+
- test/models/foreman_netbox/usergroup_test.rb
|
372
|
+
- test/models/host/managed_test.rb
|
374
373
|
- test/services/foreman_netbox/netbox_attributes_test.rb
|
375
374
|
- test/services/foreman_netbox/netbox_parameters_comparator_test.rb
|
375
|
+
- test/test_plugin_helper.rb
|
376
|
+
- test/unit/foreman_netbox/api_test.rb
|