Skip to content

Commit 4691131

Browse files
author
XavierVal
committed
proxy tests: only accepted http no need for http://
1 parent 3ce9ce8 commit 4691131

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/acceptance/basicAcceptance.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ describe('ACCEPTANCE TESTS: EXTERNAL VALID SCENARIOS [AWS]', function () {
559559
{method: 'GET', headers: {"x-relayer-httpcallback-error" : "http://noname.com"},
560560
name : "Error Callback: Should accept the request and retrieve the completed task"},
561561
{method: 'GET', headers: {"x-relayer-retry" : "10, 20, 30"}, name : "Retry: Should accept the request and retrieve the completed task"},
562-
{method: 'GET', headers: {'x-relayer-proxy' : 'http://proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
562+
{method: 'GET', headers: {'x-relayer-proxy' : 'proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
563563
{method: 'GET', headers: {'x-relayer-encoding' : 'base64'}, name : "Encoding: Should accept the request and retrieve the completed task"},
564564
{method: 'GET', headers: {'x-relayer-traceid' : 'TEST'}, name : "TRACEID: Should accept the request and retrieve the traceid and the completed task"}
565565
];
@@ -580,7 +580,7 @@ describe('ACCEPTANCE TESTS: EXTERNAL VALID SCENARIOS [AWS]', function () {
580580
{method: 'POST', headers: {"x-relayer-httpcallback-error" : "http://noname.com"},
581581
name : "Error Callback: Should accept the request and retrieve the completed task"},
582582
{method: 'POST', headers: {"x-relayer-retry" : "10, 20, 30"}, name : "Retry: Should accept the request and retrieve the completed task"},
583-
{method: 'POST', headers: {'x-relayer-proxy' : 'http://proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
583+
{method: 'POST', headers: {'x-relayer-proxy' : 'proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
584584
{method: 'POST', headers: {'x-relayer-encoding' : 'base64'}, name : "Encoding: Should accept the request and retrieve the completed task"},
585585
{method: 'POST', headers: {'x-relayer-traceid' : 'TEST'}, name : "TRACEID: Should accept the request and retrieve the traceid and the completed task"}
586586
];
@@ -601,7 +601,7 @@ describe('ACCEPTANCE TESTS: EXTERNAL VALID SCENARIOS [AWS]', function () {
601601
{method: 'PUT', headers: {"x-relayer-httpcallback-error" : "http://noname.com"},
602602
name : "Error Callback: Should accept the request and retrieve the completed task"},
603603
{method: 'PUT', headers: {"x-relayer-retry" : "10, 20, 30"}, name : "Retry: Should accept the request and retrieve the completed task"},
604-
{method: 'PUT', headers: {'x-relayer-proxy' : 'http://proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
604+
{method: 'PUT', headers: {'x-relayer-proxy' : 'proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
605605
{method: 'PUT', headers: {'x-relayer-encoding' : 'base64'}, name : "Encoding: Should accept the request and retrieve the completed task"},
606606
{method: 'PUT', headers: {'x-relayer-traceid' : 'TEST'}, name : "TRACEID: Should accept the request and retrieve the traceid and the completed task"}
607607
];
@@ -622,7 +622,7 @@ describe('ACCEPTANCE TESTS: EXTERNAL VALID SCENARIOS [AWS]', function () {
622622
{method: 'DEL', headers: {"x-relayer-httpcallback-error" : "http://noname.com"},
623623
name : "Error Callback: Should accept the request and retrieve the completed task"},
624624
{method: 'DEL', headers: {"x-relayer-retry" : "10, 20, 30"}, name : "Retry: Should accept the request and retrieve the completed task"},
625-
{method: 'DEL', headers: {'x-relayer-proxy' : 'http://proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
625+
{method: 'DEL', headers: {'x-relayer-proxy' : 'proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
626626
{method: 'DEL', headers: {'x-relayer-encoding' : 'base64'}, name : "Encoding: Should accept the request and retrieve the completed task"},
627627
{method: 'DEL', headers: {'x-relayer-traceid' : 'TEST'}, name : "TRACEID: Should accept the request and retrieve the traceid and the completed task"}
628628
];
@@ -642,7 +642,7 @@ describe('ACCEPTANCE TESTS: EXTERNAL VALID SCENARIOS [AWS]', function () {
642642
{method: 'OPTIONS', headers: {"x-relayer-httpcallback-error" : "http://noname.com"},
643643
name : "Error Callback: Should accept the request and retrieve the completed task"},
644644
{method: 'OPTIONS', headers: {"x-relayer-retry" : "10, 20, 30"}, name : "Retry: Should accept the request and retrieve the completed task"},
645-
{method: 'OPTIONS', headers: {'x-relayer-proxy' : 'http://proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
645+
{method: 'OPTIONS', headers: {'x-relayer-proxy' : 'proxy.com'}, name : "Proxy: Should accept the request and retrieve the completed task"},
646646
{method: 'OPTIONS', headers: {'x-relayer-encoding' : 'base64'}, name : "Encoding: Should accept the request and retrieve the completed task"},
647647
{method: 'OPTIONS', headers: {'x-relayer-traceid' : 'TEST'}, name : "TRACEID: Should accept the request and retrieve the traceid and the completed task"}
648648
//{method: 'OPTIONS', headers: {'x-relayer-traceid' : 'TEST2'}, name : "TO DO: CHECK why the last test is not validated..."}

0 commit comments

Comments
 (0)