-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE: NMS-16536, Provisioning fails when category has been deleted (#7463)
* NMS-16536, initial commit with fixes * NMS-16536, additional logs added to trace the issue, condition updated to avoid frequent reloading * NMS-16536, added unit test, removed extra logging, added for bug tracing. * NMS-16536, added unit test, removed extra logging, added for bug tracing. * NMS-16536, optimized imports, reverted file permission * NMS-16536, reverted files permissions * NMS-16536, added IT for review * NMS-16536, updated test case
- Loading branch information
1 parent
240b25e
commit 8cf0fd1
Showing
5 changed files
with
151 additions
and
0 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
10 changes: 10 additions & 0 deletions
10
...s-provisiond/src/test/resources/provisioner-testCategories-ThreeCategories-oneDeleted.xml
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model-import last-import="2012-05-03T03:51:43.022-05:00" foreign-source="empty" date-stamp="2012-05-03T03:51:42.441-05:00" xmlns="http://xmlns.opennms.org/xsd/config/model-import"> | ||
<node node-label="test" foreign-id="1"> | ||
<interface snmp-primary="P" status="1" ip-addr="172.16.1.1" descr="eth0"> | ||
<monitored-service service-name="ICMP"/> | ||
</interface> | ||
<category name="blarbs" /> | ||
<category name="foops" /> | ||
</node> | ||
</model-import> |
11 changes: 11 additions & 0 deletions
11
...sion/opennms-provisiond/src/test/resources/provisioner-testCategories-ThreeCategories.xml
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model-import last-import="2012-05-03T03:51:43.022-05:00" foreign-source="empty" date-stamp="2012-05-03T03:51:42.441-05:00" xmlns="http://xmlns.opennms.org/xsd/config/model-import"> | ||
<node node-label="test" foreign-id="1"> | ||
<interface snmp-primary="P" status="1" ip-addr="172.16.1.1" descr="eth0"> | ||
<monitored-service service-name="ICMP"/> | ||
</interface> | ||
<category name="blarbs" /> | ||
<category name="foops" /> | ||
<category name="NMS-16536" /> | ||
</node> | ||
</model-import> |