Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 22 Next »

Currently VES supports 2 authentication methods:

certBasicAuth→ Default setting.

noAuth  --> Option, can be changed in Consul.

High level test cases for auth.method = "certBasicAuth"  :


TC ID

Test Case Name

Test Case Execution

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

PASSED

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

PASSED

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

PASSED

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

PASSED

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

PASSED

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

PASSED

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

PASSED

High level test cases for auth.method = "noAuth"  :


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://{xdcae-ves-collector_ip}:30417/eventListener/v7 -d @event.json --header "Content-Type: application/json"FAIL. Connection refused

 PASSED

T02HTTP POST request is handled

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

PASS. HTTP/1.1 200

PASSED

  • No labels