Skip to content

Commit a233124

Browse files
Fix conflicts
1 parent 87859d6 commit a233124

File tree

7 files changed

+22
-24
lines changed

7 files changed

+22
-24
lines changed

test/fixtures/linode_instances_124_interfaces.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"ipv6": {
2727
"ranges": [
2828
{
29-
"range": "2600:3cO9:e001:59::/64",
30-
"route_target": "2600:3cO9::ff:feab:cdef"
29+
"range": "2600:3c09:e001:59::/64",
30+
"route_target": "2600:3c09::ff:feab:cdef"
3131
},
3232
{
33-
"range": "2600:3cO9:e001:5a::/64",
34-
"route_target": "2600:3cO9::ff:feab:cdef"
33+
"range": "2600:3c09:e001:5a::/64",
34+
"route_target": "2600:3c09::ff:feab:cdef"
3535
}
3636
],
3737
"shared": [

test/fixtures/linode_instances_124_interfaces_123.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
],
3535
"shared": [
3636
{
37-
"range": "2600:3cO9:e001:2a::/64",
37+
"range": "2600:3c09:e001:2a::/64",
3838
"route_target": null
3939
}
4040
],

test/fixtures/linode_instances_124_upgrade-interfaces.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"ipv6": {
2929
"ranges": [
3030
{
31-
"range": "2600:3cO9:e001:59::/64",
32-
"route_target": "2600:3cO9::ff:feab:cdef"
31+
"range": "2600:3c09:e001:59::/64",
32+
"route_target": "2600:3c09::ff:feab:cdef"
3333
},
3434
{
35-
"range": "2600:3cO9:e001:5a::/64",
36-
"route_target": "2600:3cO9::ff:feab:cdef"
35+
"range": "2600:3c09:e001:5a::/64",
36+
"route_target": "2600:3c09::ff:feab:cdef"
3737
}
3838
],
3939
"shared": [

test/integration/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ def create_vpc(test_linode_client):
407407

408408
vpc = client.vpcs.create(
409409
label=label,
410-
region=get_region(test_linode_client, {"VPCs"}),
410+
region=get_region(
411+
test_linode_client, {"VPCs", "VPC IPv6 Stack", "Linode Interfaces"}
412+
),
411413
description="test description",
412414
ipv6=[{"range": "auto"}],
413415
)

test/integration/models/linode/interfaces/test_interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_linode_interface_create_vpc(linode_interface_vpc):
263263
assert iface.version
264264

265265
assert iface.default_route.ipv4
266-
assert not iface.default_route.ipv6
266+
assert iface.default_route.ipv6
267267

268268
assert iface.vpc.vpc_id == vpc.id
269269
assert iface.vpc.subnet_id == subnet.id

test/integration/models/linode/test_linode.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def __assert_vpc(iface: LinodeInterface):
667667
__assert_base(iface)
668668

669669
assert iface.default_route.ipv4
670-
assert not iface.default_route.ipv6
670+
assert iface.default_route.ipv6
671671

672672
assert iface.vpc.vpc_id == vpc.id
673673
assert iface.vpc.subnet_id == subnet.id
@@ -711,10 +711,6 @@ def __assert_vlan(iface: LinodeInterface):
711711
assert not result.dry_run
712712
assert result.config_id == config.id
713713

714-
__assert_public(result.interfaces[0])
715-
__assert_vlan(result.interfaces[1])
716-
__assert_vpc(result.interfaces[2])
717-
718714
__assert_public(linode.linode_interfaces[0])
719715
__assert_vlan(linode.linode_interfaces[1])
720716
__assert_vpc(linode.linode_interfaces[2])

test/unit/objects/linode_interface_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def build_interface_options_public():
3737
ipv6=LinodeInterfacePublicIPv6Options(
3838
ranges=[
3939
LinodeInterfacePublicIPv6RangeOptions(
40-
range="2600:3cO9:e001:59::/64"
40+
range="2600:3c09:e001:59::/64"
4141
)
4242
]
4343
),
@@ -106,22 +106,22 @@ def assert_linode_124_interface_123(iface: LinodeInterface):
106106
assert iface.public.ipv4.shared[0].linode_id == 125
107107

108108
# public.ipv6 assertions
109-
assert iface.public.ipv6.ranges[0].range == "2600:3cO9:e001:59::/64"
109+
assert iface.public.ipv6.ranges[0].range == "2600:3c09:e001:59::/64"
110110
assert (
111111
iface.public.ipv6.ranges[0].route_target
112-
== "2600:3cO9::ff:feab:cdef"
112+
== "2600:3c09::ff:feab:cdef"
113113
)
114114

115-
assert iface.public.ipv6.ranges[1].range == "2600:3cO9:e001:5a::/64"
115+
assert iface.public.ipv6.ranges[1].range == "2600:3c09:e001:5a::/64"
116116
assert (
117117
iface.public.ipv6.ranges[1].route_target
118-
== "2600:3cO9::ff:feab:cdef"
118+
== "2600:3c09::ff:feab:cdef"
119119
)
120120

121-
assert iface.public.ipv6.shared[0].range == "2600:3cO9:e001:2a::/64"
121+
assert iface.public.ipv6.shared[0].range == "2600:3c09:e001:2a::/64"
122122
assert iface.public.ipv6.shared[0].route_target is None
123123

124-
assert iface.public.ipv6.slaac[0].address == "2600:3cO9::ff:feab:cdef"
124+
assert iface.public.ipv6.slaac[0].address == "2600:3c09::ff:feab:cdef"
125125
assert iface.public.ipv6.slaac[0].prefix == 64
126126

127127
@staticmethod
@@ -215,7 +215,7 @@ def test_update_public(self):
215215

216216
iface.public.ipv6.ranges = [
217217
LinodeInterfacePublicIPv6RangeOptions(
218-
range="2600:3cO9:e001:58::/64"
218+
range="2600:3c09:e001:58::/64"
219219
)
220220
]
221221

0 commit comments

Comments
 (0)