Skip to content

Commit 2fc6ea4

Browse files
Implement fixtures
1 parent cf04ca6 commit 2fc6ea4

6 files changed

Lines changed: 39 additions & 4 deletions

test/fixtures/networking_firewalls_123_devices.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
},
1111
"id": 123,
1212
"updated": "2018-01-02T00:01:01"
13+
},
14+
{
15+
"created": "2018-01-01T00:01:01",
16+
"entity": {
17+
"id": 123,
18+
"label": null,
19+
"type": "interface",
20+
"url": "/v4/linode/instances/123/interfaces/123"
21+
},
22+
"id": 456,
23+
"updated": "2018-01-02T00:01:01"
1324
}
1425
],
1526
"page": 1,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"created": "2018-01-01T00:01:01",
3+
"entity": {
4+
"id": 123,
5+
"label": null,
6+
"type": "interface",
7+
"url": "/v4/linode/instances/123/interfaces/123"
8+
},
9+
"id": 456,
10+
"updated": "2018-01-02T00:01:01"
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"default_firewall_ids": {
3+
"vpc_interface": 123,
4+
"public_interface": 456,
5+
"linode": 789,
6+
"nodebalancer": 321
7+
}
8+
}

test/fixtures/networking_ips_127.0.0.1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"address": "127.0.0.1",
33
"gateway": "127.0.0.1",
44
"linode_id": 123,
5+
"interface_id": 456,
56
"prefix": 24,
67
"public": true,
78
"rdns": "test.example.org",

test/fixtures/vpcs_123456_subnets.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
"interfaces": [
1111
{
1212
"id": 678,
13-
"active": true
13+
"active": true,
14+
"config_id": null
1415
},
1516
{
1617
"id": 543,
17-
"active": false
18+
"active": false,
19+
"config_id": null
1820
}
1921
]
2022
}

test/fixtures/vpcs_123456_subnets_789.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
"interfaces": [
99
{
1010
"id": 678,
11-
"active": true
11+
"active": true,
12+
"config_id": null
1213
},
1314
{
1415
"id": 543,
15-
"active": false
16+
"active": false,
17+
"config_id": null
1618
}
1719
]
1820
}

0 commit comments

Comments
 (0)