File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ thash='QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
28
28
test_expect_success " GET to Gateway succeeds" '
29
29
curl -svX GET "http://127.0.0.1:$gwport/ipfs/$thash" 2>curl_output
30
30
'
31
+
32
+ cat curl_output
31
33
# GET Response from Gateway should contain CORS headers
32
34
test_expect_success " GET response for Gateway resource looks good" '
33
- grep "Access-Control-Allow-Origin:" curl_output &&
34
- grep "Access-Control-Allow-Methods:" curl_output &&
35
+ grep "Access-Control-Allow-Origin:" curl_output | grep "\*" &&
36
+ grep "Access-Control-Allow-Methods:" curl_output | grep " GET\b" &&
35
37
grep "Access-Control-Allow-Headers:" curl_output
36
38
'
37
39
@@ -41,8 +43,8 @@ test_expect_success "OPTIONS to Gateway succeeds" '
41
43
'
42
44
# OPTION Response from Gateway should contain CORS headers
43
45
test_expect_success " OPTIONS response for Gateway resource looks good" '
44
- grep "Access-Control-Allow-Origin:" curl_output &&
45
- grep "Access-Control-Allow-Methods:" curl_output &&
46
+ grep "Access-Control-Allow-Origin:" curl_output | grep "\*" &&
47
+ grep "Access-Control-Allow-Methods:" curl_output | grep " GET\b" &&
46
48
grep "Access-Control-Allow-Headers:" curl_output
47
49
'
48
50
You can’t perform that action at this time.
0 commit comments