Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TC ID

Test Case Name

Test Case Execution

Expected Result  Test Status
T01Client with correct basic auth and correct certificatecurl -vk --cert rootCAcert.crt pem --key rootCA.key --pass collector key.pem -u sample1:sample1 -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"PASS. HTTP/1.1 202

Status
colourGreen
titlePASSED

T02Client with incorrect basic auth and correct certificatecurl -vk --cert rootCAcert.crt pem --key key rootCA.key --pass collector pem -u sample1:sample2 -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"PASS. HTTP/1.1 202

Status
colourGreen
titlePASSED

T03Client without basic auth and with correct certificatecurl -vk --cert rootCAcert.crt pem --key rootCAkey.key pem --pass collector -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"PASS. HTTP/1.1 202

Status
colourGreen
titlePASSED

T04Client with correct basic auth and incorrect certificatecurl -vk --cert incorrect.crt --key rootCA.key --pass collector -u sample1:sample1 -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"FAIL, connection closed because of bad certificate

Status
colourGreen
titlePASSED

T05Client with correct basic auth and without certificatecurl -vk -u sample1:sample1 -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"PASS. HTTP/1.1 202

Status
colourGreen
titlePASSED

T06Client with incorrect certificate and incorrect basic authcurl -vk --cert incorrect.crt --key rootCA.key --pass collector -u dummy:sample1 -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"FAIL, connection closed because of bad authentication

Status
colourGreen
titlePASSED

T07Client without certificate and without basic authcurl -vk -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"FAIL, HTTP/1.1 401

Status
colourGreen
titlePASSED

...

TC ID

Test Case Name

Test Case Execution

Expected Result  Test Status
T01Any HTTPS request is refusedcurl -vk --cert rootCA.crt --key rootCA.key --pass collector -u sample1:sample1 -X POST https://192.168.0.22{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"FAIL. Connection refused

 

Status
colourGreen
titlePASSED

T02HTTP POST request is handled

curl -vX POST http://localhost{xdcae-ves-collector_ip}:8080/eventListener/v7 -d @event.json --header "Content-Type: application/json"

PASS. HTTP/1.1 200

Status
colourGreen
titlePASSED

...