mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
0d9e2c4515
This reverts commit b16df3d3d3.
18 lines
621 B
Plaintext
18 lines
621 B
Plaintext
*** Settings ***
|
|
Resource resource/api.resource
|
|
Resource resource/common.resource
|
|
Resource resource/error.resource
|
|
Suite Setup Start Neuronx
|
|
Suite Teardown Stop Neuronx
|
|
|
|
*** Test Cases ***
|
|
login with invalid username and password, it should return failure
|
|
POST /api/v2/login {"name":"admin1", "pass": "0000"}
|
|
Integer response status 401
|
|
Integer $.error ${NEU_ERR_INVALID_USER_OR_PASSWORD}
|
|
|
|
login with username and password, it should return success
|
|
POST /api/v2/login {"name":"admin", "pass": "0000"}
|
|
Integer response status 200
|
|
output $.token
|