Open alamrios opened 2 years ago
Given: Golang microservice project template And: Aurora database working When: Project created And: Project could be started And: Aurora database accessible Then: Development environment ready to use
Given: Golang microservice project template When: Aurora database not working Then: Deploy Aurora database When: Project created And: Project could be started And: Aurora database accessible Then: Development environment ready to use
Given: Using API to create a new user When: Call to users microservice using POST /users/ And: Valid user found in request body And: Password can be decoded using SHA-256 Then: Return 201 http status and same user object created in json format
Given: Using API to create a new user When: Call to users microservice using POST /users/ And: Invalid user found in request body or password can not be decoded using SHA-256 Then: Return 400 http status and error message
Given: Using API to update a new user When: Call to users microservice using PUT /users/{id_user} And: Valid id_user found in request And: Valid user found in request body And: Password can be decoded using SHA-256 Then: Return 200 http status and updated user object in json format
Given: Using API to update a new user When: Call to users microservice using PUT /users/{id_user} And: Invalid id_user found in request or invalid user found in request body or password can not be decoded using SHA-256 Then: Return 400 http status and error message
Given: Using API to retrieve a user When: Call to users microservice using GET /users/{id_user} And: Valid id_user found in request Then: Return 200 http status and user object in json format
Given: Using API to retrieve all users When: Call to users microservice using GET /users/ Then: Return 200 http status and user object lists in json format
Given: Using API to delete a user When: Call to users microservice using DELETE /users/{id_user} And: Valid id_user found in request Then: Return 200 http status
Given: Using API to delete a user When: Call to users microservice using DELETE /users/{id_user} And: No user found with given id_user Then: Return 400 http status and error message
Given: Development environment ready to use When: New users microservice deploy And: Port 8001 free to use Then: Deploy golang microservice for users in port 8001
Given: Development environment ready to use When: New login microservice deploy And: Port 8002 free to use Then: Deploy golang microservice for users in port 8002
Given: User tries to access the application When: Call to login microservice using POST /login/ And: Valid user found in request body And: Password can be decoded using SHA-256 And: Users exists Then: Returns 200 http status
Given: User tries to access the application When: Call to login microservice using POST /login/ And: Invalid user found in request body or user does not exists or password can not be decoded Then: Returns 400 http status and error message