Commit c25b0c63 authored by Łukasz Nowak's avatar Łukasz Nowak

slapos_web_frontend_selector: Adapt to new naming approach

There is no reason to name regions so explicitly (like France or US), just
use generic and understandable region name (like Europe or North America).

Chinese endpoints are named via their operating telecoms, as this is like
region (latency, speed).
parent 4ec0fc4f
......@@ -5,33 +5,33 @@
var promise_list = [],
relative_url_path = "/app",
test_url_list = [
{ name : 'France-O',
testurl: "http://demoapp3.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp3.erp5.cn" + relative_url_path },
{ name : 'France-I',
testurl: "http://demoapp6.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp6.erp5.cn" + relative_url_path },
{ name : 'US-West-A',
testurl: "http://demoapp7.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp7.erp5.cn" + relative_url_path },
{ name : 'Canada',
testurl: "http://demoapp12.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp12.erp5.cn" + relative_url_path },
{ name : 'China-CT',
testurl: "http://demoapp26.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp26.erp5.cn" + relative_url_path },
{ name : 'China-CNC',
testurl: "http://demoapp27.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp27.erp5.cn" + relative_url_path },
{ name : 'China-CM',
testurl: "http://demoapp28.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp28.erp5.cn" + relative_url_path },
{ name : 'Japan-AWS-001',
testurl: "http://demoapp29.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp29.erp5.cn" + relative_url_path },
{ name : 'Japan-AWS-002',
testurl: "http://demoapp30.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp30.erp5.cn" + relative_url_path }
{ name : 'Europe 1',
testurl: "http://demoapp-eu1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-eu1.erp5.cn" + relative_url_path },
{ name : 'Europe 2',
testurl: "http://demoapp-eu1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-eu2.erp5.cn" + relative_url_path },
{ name : 'North America 1',
testurl: "http://demoapp-na1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-na1.erp5.cn" + relative_url_path },
{ name : 'North America 2',
testurl: "http://demoapp-na2.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-na2.erp5.cn" + relative_url_path },
{ name : 'China CT',
testurl: "http://demoapp-ct1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-ct1.erp5.cn" + relative_url_path },
{ name : 'China CU',
testurl: "http://demoapp-cu1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-cu1.erp5.cn" + relative_url_path },
{ name : 'China CM',
testurl: "http://demoapp-cm1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-cm1.erp5.cn" + relative_url_path },
{ name : 'Asia 1',
testurl: "http://demoapp-as1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-as1.erp5.cn" + relative_url_path },
{ name : 'Asia 2',
testurl: "http://demoapp-as2.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp-as2.erp5.cn" + relative_url_path }
];
function ajax(param) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment