Skip to content

Commit

Permalink
Fix e2e tests - GivenPrefixClaimWithPreserveWhenAppliedThenSucceed
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybear327 committed Dec 17, 2024
1 parent 95cf891 commit 42b99d7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions kind/load-data-job/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class Prefix:
"cfDataTypeInteger": 2,
},
),
Prefix(
Prefix( # TODO(henrybear327): debug why prefixclaim-ipv4-parentprefixselector-restoration-succeed isn't using this prefix
prefix="3.0.3.0/24",
site=None,
tenant={
Expand Down Expand Up @@ -408,7 +408,7 @@ class Prefix:
"cfDataTypeInteger": 7,
},
),
Prefix(
Prefix( # TODO(henrybear327): debug why this entry is missing from NetBox after e2e test execution
prefix="2:0:0:1::/64",
site={
"name": "MY_SITE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ spec:
spec:
comments: your comments
description: some description
parentPrefix: 2.2.0.0/24
parentPrefix: 2.0.2.0/24
prefixLength: /28
preserveInNetbox: true
site: DM-Akron
tenant: Dunder-Mifflin, Inc.
site: MY_SITE
tenant: MY_TENANT
status:
parentPrefix: 2.2.0.0/24
prefix: 2.2.0.0/28
parentPrefix: 2.0.2.0/24
prefix: 2.0.2.0/28
prefixName: prefixclaim-ipv4-apply
- assert:
resource:
Expand All @@ -35,9 +35,9 @@ spec:
spec:
comments: your comments
description: some description
prefix: 2.2.0.0/28
prefix: 2.0.2.0/28
preserveInNetbox: true
site: DM-Akron
tenant: Dunder-Mifflin, Inc.
site: MY_SITE
tenant: MY_TENANT
customFields:
netboxOperatorRestorationHash: 7a4827d80057860f6e6ab58c317323d1a82431cf
netboxOperatorRestorationHash: f773cf04f71c017931716e125a8520d70f4c7f83
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
app.kubernetes.io/managed-by: kustomize
name: prefixclaim-ipv4-apply
spec:
tenant: "Dunder-Mifflin, Inc."
site: "DM-Akron"
tenant: "MY_TENANT"
site: "MY_SITE"
description: "some description"
comments: "your comments"
preserveInNetbox: true
parentPrefix: "2.2.0.0/24"
parentPrefix: "2.0.2.0/24"
prefixLength: "/28"

0 comments on commit 42b99d7

Please sign in to comment.