Skip to content

Commit 2bff68d

Browse files
committed
Add updated test data.
1 parent ab63a53 commit 2bff68d

2 files changed

Lines changed: 76 additions & 2 deletions

File tree

test/testdata/PLATFORM_ROUTES.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,80 @@
3636
"enabled" : false
3737
}
3838
},
39+
"https://www2.master-7rqtwti-gcpjkefjk4wc2.us-2.platformsh.site/" : {
40+
"original_url" : "https://www.{default}/",
41+
"attributes" : {},
42+
"type" : "upstream",
43+
"restrict_robots" : false,
44+
"tls" : {
45+
"client_authentication" : null,
46+
"min_version" : 771,
47+
"client_certificate_authorities" : [],
48+
"strict_transport_security" : {
49+
"include_subdomains" : null,
50+
"enabled" : true,
51+
"preload" : null
52+
}
53+
},
54+
"upstream" : "app",
55+
"cache" : {
56+
"enabled" : true,
57+
"headers" : [
58+
"Accept",
59+
"Accept-Language"
60+
],
61+
"cookies" : [
62+
"/^SS?ESS.*/"
63+
],
64+
"default_ttl" : 0
65+
},
66+
"http_access" : {
67+
"addresses" : [],
68+
"basic_auth" : {}
69+
},
70+
"primary" : false,
71+
"id" : "main",
72+
"ssi" : {
73+
"enabled" : false
74+
}
75+
},
76+
"https://www3.master-7rqtwti-gcpjkefjk4wc2.us-2.platformsh.site/" : {
77+
"original_url" : "https://www.{default}/",
78+
"attributes" : {},
79+
"type" : "upstream",
80+
"restrict_robots" : false,
81+
"tls" : {
82+
"client_authentication" : null,
83+
"min_version" : 771,
84+
"client_certificate_authorities" : [],
85+
"strict_transport_security" : {
86+
"include_subdomains" : null,
87+
"enabled" : true,
88+
"preload" : null
89+
}
90+
},
91+
"upstream" : "app2",
92+
"cache" : {
93+
"enabled" : true,
94+
"headers" : [
95+
"Accept",
96+
"Accept-Language"
97+
],
98+
"cookies" : [
99+
"/^SS?ESS.*/"
100+
],
101+
"default_ttl" : 0
102+
},
103+
"http_access" : {
104+
"addresses" : [],
105+
"basic_auth" : {}
106+
},
107+
"primary" : false,
108+
"id" : "main",
109+
"ssi" : {
110+
"enabled" : false
111+
}
112+
},
39113
"http://www.master-7rqtwti-gcpjkefjk4wc2.us-2.platformsh.site/" : {
40114
"id" : null,
41115
"to" : "https://www.master-7rqtwti-gcpjkefjk4wc2.us-2.platformsh.site/",

test/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe("Config tests", () => {
155155
let routes = c.routes();
156156

157157
assert.ok(typeof routes == 'object');
158-
assert.equal(Object.keys(routes).length, 4);
158+
assert.equal(Object.keys(routes).length, 6);
159159
});
160160

161161
it('throws when loading routes in build time', () => {
@@ -201,7 +201,7 @@ describe("Config tests", () => {
201201
let routes = c.routes();
202202

203203
assert.ok(typeof routes == 'object');
204-
assert.equal(Object.keys(routes).length, 4);
204+
assert.equal(Object.keys(routes).length, 6);
205205
});
206206
});
207207

0 commit comments

Comments
 (0)