-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5183 from opsmill/pog-schema-sync-deleted-nodes-I…
…FC-887 Ensure that deleted nodes are removed from the schema_branch
- Loading branch information
Showing
8 changed files
with
159 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
backend/tests/integration_docker/test_files/delete_interface_schema.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
version: "1.0" | ||
nodes: | ||
- name: Device | ||
namespace: Network | ||
human_friendly_id: ['hostname__value'] | ||
attributes: | ||
- name: hostname | ||
kind: Text | ||
unique: true | ||
- name: model | ||
kind: Text | ||
- name: Interface | ||
namespace: Network | ||
state: absent | ||
attributes: | ||
- name: name | ||
kind: Text | ||
- name: description | ||
kind: Text | ||
optional: true |
20 changes: 20 additions & 0 deletions
20
backend/tests/integration_docker/test_files/device_and_interface_schema.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
version: "1.0" | ||
nodes: | ||
- name: Device | ||
namespace: Network | ||
human_friendly_id: ['hostname__value'] | ||
attributes: | ||
- name: hostname | ||
kind: Text | ||
unique: true | ||
- name: model | ||
kind: Text | ||
- name: Interface | ||
namespace: Network | ||
attributes: | ||
- name: name | ||
kind: Text | ||
- name: description | ||
kind: Text | ||
optional: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ensure that deleted schema nodes are removed from all workers and that the schema is in sync without having to restart |