Opened 6 years ago

Closed 6 years ago

#1908 closed enhancement (fixed)

test_open has too much output

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 9.7
Component: systemtest Version: development
Keywords: Cc:
Complexity: Medium

Description

This is unnecessary output in the systemtest. For each case it should say something along the lines of
"Check doGet() with enabled CORS on a sub-controller… ok/failed."
All the rest here makes it hard to figure out what's the result, which test passed and which failed.

test.sh: Testing Petascope allow CORS...
HTTP/1.1 200 OK\r
Server: Apache-Coyote/1.1\r
Access-Control-Allow-Origin: *\r
Vary: Origin\r
Access-Control-Allow-Credentials: true\r
Content-Type: text/html\r
Content-Length: 1875\r
Date: Mon, 12 Nov 2018 16:07:09 GMT\r
\r
test.sh: Check doGet() with enabled CORS...
< Access-Control-Allow-Origin: *\r
ok.
test.sh: Check doOptions() with enabled CORS...
< Access-Control-Allow-Origin: http://test.com\r
ok.
HTTP/1.1 404 Not Found\r
Server: Apache-Coyote/1.1\r
Access-Control-Allow-Origin: *\r
Vary: Origin\r
Access-Control-Allow-Credentials: true\r
Content-Type: application/json;charset=UTF-8\r
Content-Length: 0\r
Date: Mon, 12 Nov 2018 16:07:10 GMT\r
\r
test.sh: Check doGet() with enabled CORS on a sub-controller...
< Access-Control-Allow-Origin: *\r
ok.
test.sh: done.

Change History (1)

comment:1 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: newclosed
Type: defectenhancement
Note: See TracTickets for help on using tickets.