Skip to content

Commit 4f883d8

Browse files
committed
fix e2e tests
1 parent 27a8d93 commit 4f883d8

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

tests/e2e/Prefix/IPv4/prefixclaim-ipv4-parentprefixselector-nonexisingcustomfield/chainsaw-test.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,17 @@ spec:
4545
(conditions[?type == 'PrefixAssigned']):
4646
- status: 'False'
4747
reason: 'PrefixCRNotCreated'
48+
- assert:
49+
resource:
50+
apiVersion: v1
51+
count: 1
52+
kind: Event
53+
type: Warning
54+
reason: PrefixCRNotCreated
55+
source:
56+
component: prefix-claim-controller
57+
message: "Failed to assign prefix, prefix CR creation skipped: invalid parentPrefixSelector, netbox custom fields [nonexisingfield] do not exist"
58+
involvedObject:
59+
apiVersion: netbox.dev/v1
60+
kind: PrefixClaim
61+
name: prefixclaim-ipv4-parentprefixselector-nonexisingcustomfield

tests/e2e/Prefix/IPv4/prefixclaim-ipv4-prefixexhausted/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec:
9494
reason: PrefixCRNotCreated
9595
source:
9696
component: prefix-claim-controller
97-
message: "Failed to fetch new Prefix from NetBox: parent prefix exhausted, will restart the parent prefix selection process"
97+
message: "Failed to assign prefix, prefix CR creation skipped: parent prefix exhausted, will restart the parent prefix selection process"
9898
involvedObject:
9999
apiVersion: netbox.dev/v1
100100
kind: PrefixClaim

tests/e2e/ipaddress/ipv4/ipaddressclaim-ipv4-prefixexhausted/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ spec:
129129
reason: IPAddressCRNotCreated
130130
source:
131131
component: ip-address-claim-controller
132-
message: "Failed to fetch new IP from NetBox: parent prefix exhausted"
132+
message: "Failed to assign prefix, prefix CR creation skipped: parent prefix exhausted"
133133
involvedObject:
134134
apiVersion: netbox.dev/v1
135135
kind: IpAddressClaim

tests/e2e/ipaddress/ipv6/ipaddressclaim-ipv6-prefixexhausted/chainsaw-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ spec:
129129
reason: IPAddressCRNotCreated
130130
source:
131131
component: ip-address-claim-controller
132-
message: "Failed to fetch new IP from NetBox: parent prefix exhausted"
132+
message: "Failed to assign prefix, prefix CR creation skipped: parent prefix exhausted"
133133
involvedObject:
134134
apiVersion: netbox.dev/v1
135135
kind: IpAddressClaim

0 commit comments

Comments
 (0)