Skip to content

Commit 472ab46

Browse files
Update fixtures
1 parent cf04ca6 commit 472ab46

10 files changed

+251
-155
lines changed

test/fixtures/linode_instances_123_configs.json

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,45 @@
1616
"id": 456789,
1717
"interfaces": [
1818
{
19-
"id": 456,
20-
"purpose": "public",
21-
"primary": true
19+
"id": 456,
20+
"purpose": "public",
21+
"primary": true
2222
},
2323
{
24-
"id": 123,
25-
"purpose": "vpc",
26-
"primary": true,
27-
"active": true,
28-
"vpc_id": 123456,
29-
"subnet_id": 789,
30-
"ipv4": {
31-
"vpc": "10.0.0.2",
32-
"nat_1_1": "any"
33-
},
34-
"ip_ranges": [
35-
"10.0.0.0/24"
36-
]
24+
"id": 123,
25+
"purpose": "vpc",
26+
"primary": true,
27+
"active": true,
28+
"vpc_id": 123456,
29+
"subnet_id": 789,
30+
"ipv4": {
31+
"vpc": "10.0.0.2",
32+
"nat_1_1": "any"
33+
},
34+
"ipv6": {
35+
"slaac": [
36+
{
37+
"range": "1234::5678/64",
38+
"address": "1234::5678"
39+
}
40+
],
41+
"ranges": [
42+
{
43+
"range": "1234::5678/64"
44+
}
45+
],
46+
"is_public": true
47+
},
48+
"ip_ranges": [
49+
"10.0.0.0/24"
50+
]
3751
},
3852
{
39-
"id": 321,
40-
"primary": false,
41-
"ipam_address":"10.0.0.2",
42-
"label":"test-interface",
43-
"purpose":"vlan"
53+
"id": 321,
54+
"primary": false,
55+
"ipam_address": "10.0.0.2",
56+
"label": "test-interface",
57+
"purpose": "vlan"
4458
}
4559
],
4660
"run_level": "default",
Lines changed: 75 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,79 @@
11
{
2-
"root_device":"/dev/sda",
3-
"comments":"",
4-
"helpers":{
5-
"updatedb_disabled":true,
6-
"modules_dep":true,
7-
"devtmpfs_automount":true,
8-
"distro":true,
9-
"network":false
10-
},
11-
"label":"My Ubuntu 17.04 LTS Profile",
12-
"created":"2014-10-07T20:04:00",
13-
"memory_limit":0,
14-
"id":456789,
15-
"interfaces": [
16-
{
17-
"id": 456,
18-
"purpose": "public",
19-
"primary": true
2+
"root_device": "/dev/sda",
3+
"comments": "",
4+
"helpers": {
5+
"updatedb_disabled": true,
6+
"modules_dep": true,
7+
"devtmpfs_automount": true,
8+
"distro": true,
9+
"network": false
10+
},
11+
"label": "My Ubuntu 17.04 LTS Profile",
12+
"created": "2014-10-07T20:04:00",
13+
"memory_limit": 0,
14+
"id": 456789,
15+
"interfaces": [
16+
{
17+
"id": 456,
18+
"purpose": "public",
19+
"primary": true
20+
},
21+
{
22+
"id": 123,
23+
"purpose": "vpc",
24+
"primary": true,
25+
"active": true,
26+
"vpc_id": 123456,
27+
"subnet_id": 789,
28+
"ipv4": {
29+
"vpc": "10.0.0.2",
30+
"nat_1_1": "any"
2031
},
21-
{
22-
"id": 123,
23-
"purpose": "vpc",
24-
"primary": true,
25-
"active": true,
26-
"vpc_id": 123456,
27-
"subnet_id": 789,
28-
"ipv4": {
29-
"vpc": "10.0.0.2",
30-
"nat_1_1": "any"
31-
},
32-
"ip_ranges": [
33-
"10.0.0.0/24"
34-
]
32+
"ipv6": {
33+
"slaac": [
34+
{
35+
"range": "1234::5678/64",
36+
"address": "1234::5678"
37+
}
38+
],
39+
"ranges": [
40+
{
41+
"range": "1234::5678/64"
42+
}
43+
],
44+
"is_public": true
3545
},
36-
{
37-
"id": 321,
38-
"primary": false,
39-
"ipam_address":"10.0.0.2",
40-
"label":"test-interface",
41-
"purpose":"vlan"
42-
}
43-
],
44-
"run_level":"default",
45-
"initrd":null,
46-
"virt_mode":"paravirt",
47-
"kernel":"linode/latest-64bit",
48-
"updated":"2014-10-07T20:04:00",
49-
"devices":{
50-
"sda":{
51-
"disk_id":12345,
52-
"volume_id":null
53-
},
54-
"sdc":null,
55-
"sde":null,
56-
"sdh":null,
57-
"sdg":null,
58-
"sdb":{
59-
"disk_id":12346,
60-
"volume_id":null
61-
},
62-
"sdf":null,
63-
"sdd":null
64-
}
46+
"ip_ranges": [
47+
"10.0.0.0/24"
48+
]
49+
},
50+
{
51+
"id": 321,
52+
"primary": false,
53+
"ipam_address": "10.0.0.2",
54+
"label": "test-interface",
55+
"purpose": "vlan"
56+
}
57+
],
58+
"run_level": "default",
59+
"initrd": null,
60+
"virt_mode": "paravirt",
61+
"kernel": "linode/latest-64bit",
62+
"updated": "2014-10-07T20:04:00",
63+
"devices": {
64+
"sda": {
65+
"disk_id": 12345,
66+
"volume_id": null
67+
},
68+
"sdc": null,
69+
"sde": null,
70+
"sdh": null,
71+
"sdg": null,
72+
"sdb": {
73+
"disk_id": 12346,
74+
"volume_id": null
75+
},
76+
"sdf": null,
77+
"sdd": null
78+
}
6579
}
Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,48 @@
11
{
2-
"data": [
3-
{
4-
"id": 456,
5-
"purpose": "public",
6-
"primary": true
2+
"data": [
3+
{
4+
"id": 456,
5+
"purpose": "public",
6+
"primary": true
7+
},
8+
{
9+
"id": 123,
10+
"purpose": "vpc",
11+
"primary": true,
12+
"active": true,
13+
"vpc_id": 123456,
14+
"subnet_id": 789,
15+
"ipv4": {
16+
"vpc": "10.0.0.2",
17+
"nat_1_1": "any"
718
},
8-
{
9-
"id": 123,
10-
"purpose": "vpc",
11-
"primary": true,
12-
"active": true,
13-
"vpc_id": 123456,
14-
"subnet_id": 789,
15-
"ipv4": {
16-
"vpc": "10.0.0.2",
17-
"nat_1_1": "any"
18-
},
19-
"ip_ranges": [
20-
"10.0.0.0/24"
21-
]
19+
"ipv6": {
20+
"slaac": [
21+
{
22+
"range": "1234::5678/64",
23+
"address": "1234::5678"
24+
}
25+
],
26+
"ranges": [
27+
{
28+
"range": "1234::5678/64"
29+
}
30+
],
31+
"is_public": true
2232
},
23-
{
24-
"id": 321,
25-
"primary": false,
26-
"ipam_address":"10.0.0.2",
27-
"label":"test-interface",
28-
"purpose":"vlan"
29-
}
30-
],
31-
"page": 1,
32-
"pages": 1,
33-
"results": 1
33+
"ip_ranges": [
34+
"10.0.0.0/24"
35+
]
36+
},
37+
{
38+
"id": 321,
39+
"primary": false,
40+
"ipam_address": "10.0.0.2",
41+
"label": "test-interface",
42+
"purpose": "vlan"
43+
}
44+
],
45+
"page": 1,
46+
"pages": 1,
47+
"results": 1
3448
}
Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
{
2-
"id": 123,
3-
"purpose": "vpc",
4-
"primary": true,
5-
"active": true,
6-
"vpc_id": 123456,
7-
"subnet_id": 789,
8-
"ipv4": {
9-
"vpc": "10.0.0.2",
10-
"nat_1_1": "any"
11-
},
12-
"ip_ranges": [
13-
"10.0.0.0/24"
14-
]
2+
"id": 123,
3+
"purpose": "vpc",
4+
"primary": true,
5+
"active": true,
6+
"vpc_id": 123456,
7+
"subnet_id": 789,
8+
"ipv4": {
9+
"vpc": "10.0.0.2",
10+
"nat_1_1": "any"
11+
},
12+
"ipv6": {
13+
"slaac": [
14+
{
15+
"range": "1234::5678/64",
16+
"address": "1234::5678"
17+
}
18+
],
19+
"ranges": [
20+
{
21+
"range": "1234::5678/64"
22+
}
23+
],
24+
"is_public": true
25+
},
26+
"ip_ranges": [
27+
"10.0.0.0/24"
28+
]
1529
}

test/fixtures/vpcs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"id": 123456,
66
"description": "A very real VPC.",
77
"region": "us-southeast",
8+
"ipv6": [
9+
{
10+
"range": "fd71:1140:a9d0::/52"
11+
}
12+
],
813
"created": "2018-01-01T00:01:01",
914
"updated": "2018-01-01T00:01:01"
1015
}

test/fixtures/vpcs_123456.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"id": 123456,
44
"description": "A very real VPC.",
55
"region": "us-southeast",
6+
"ipv6": [
7+
{
8+
"range": "fd71:1140:a9d0::/52"
9+
}
10+
],
611
"created": "2018-01-01T00:01:01",
712
"updated": "2018-01-01T00:01:01"
813
}

0 commit comments

Comments
 (0)