Skip to content

Commit 0b0d24f

Browse files
Jake ChampionJakeChampion
authored andcommitted
chore: update test fixtures to work when running tests locally
1 parent f1a22a4 commit 0b0d24f

File tree

3 files changed

+60
-8
lines changed

3 files changed

+60
-8
lines changed

integration-tests/js-compute/fixtures/extend-from-builtins/fastly.toml.in

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ service_id = ""
1414

1515
[local_server]
1616
[local_server.object_store]
17-
example = []
17+
18+
[[local_server.object_store.example]]
19+
key = "placeholder"
20+
data = 'placholder'
1821

1922
[local_server.dictionaries]
2023
[local_server.dictionaries.example]
2124
format = "inline-toml"
2225
[local_server.dictionaries.example.contents]
26+
"twitter" = "https://twitter.com/fastly"
2327

2428
[setup]
2529
[setup.dictionaries]
2630
[setup.dictionaries.example]
27-
[setup.dictionaries.example.items]
31+
[setup.dictionaries.example.items]
32+
[setup.dictionaries.example.items.twitter]
33+
value = "https://twitter.com/fastly"

integration-tests/js-compute/fixtures/geoip/bin/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,21 @@ let ipv4Expected = {
122122
as_name: "sky uk limited",
123123
as_number: 5607,
124124
area_code: 0,
125-
city: "tower hamlets",
125+
city: "south kirkby",
126126
conn_speed: "broadband",
127127
conn_type: "wifi",
128128
continent: "EU",
129129
country_code: "GB",
130130
country_code3: "GBR",
131131
country_name: "united kingdom",
132132
gmt_offset: 0,
133-
latitude: 51.52,
134-
longitude: -0.06,
135-
metro_code: 826044,
136-
postal_code: "e1 5bt",
133+
latitude: 53.6,
134+
longitude: -1.32,
135+
metro_code: 826039,
136+
postal_code: "wf9 3st",
137137
proxy_description: "?",
138138
proxy_type: "?",
139-
region: "TWH",
139+
region: "WKF",
140140
utc_offset: 0
141141
};
142142

integration-tests/js-compute/fixtures/geoip/fastly.toml.in

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,49 @@ service_id = ""
1010

1111
[scripts]
1212
build = "node ../../../../js-compute-runtime-cli.js"
13+
14+
[local_server]
15+
[local_server.geolocation]
16+
format = "inline-toml"
17+
18+
[local_server.geolocation.addresses]
19+
[local_server.geolocation.addresses."2.216.196.179"]
20+
as_name = "sky uk limited"
21+
as_number = 5607
22+
area_code = 0
23+
city = "tower hamlets"
24+
conn_speed = "broadband"
25+
conn_type = "wifi"
26+
continent = "EU"
27+
country_code = "GB"
28+
country_code3 = "GBR"
29+
country_name = "united kingdom"
30+
gmt_offset = 0
31+
latitude = 51.52
32+
longitude = -0.06
33+
metro_code = 826044
34+
postal_code = "e1 5bt"
35+
proxy_description = "?"
36+
proxy_type = "?"
37+
region = "TWH"
38+
utc_offset = 0
39+
[local_server.geolocation.addresses."2607:f0d0:1002:51::4"]
40+
as_name = "softlayer technologies inc."
41+
as_number = 36351
42+
area_code = 214
43+
city = "dallas"
44+
conn_speed = "broadband"
45+
conn_type = "wired"
46+
continent = "NA"
47+
country_code = "US"
48+
country_code3 = "USA"
49+
country_name = "united states"
50+
gmt_offset = -600
51+
latitude = 32.94
52+
longitude = -96.84
53+
metro_code = 623
54+
postal_code = "75244"
55+
proxy_description = "?"
56+
proxy_type = "hosting"
57+
region = "TX"
58+
utc_offset = -600

0 commit comments

Comments
 (0)