This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
networks: | |
queue-test: | |
driver: bridge | |
services: | |
tests: | |
container_name: "tests" | |
build: | |
context: . | |
depends_on: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Run Test Suite inside docker | |
tests: | |
@docker-compose -f docker-compose.yml up --build --abort-on-container-exit | |
@docker-compose -f docker-compose.yml down --volumes | |
## Run Integration Test | |
## Note: This command is intended to be executed within docker env | |
integration-tests: | |
@sh -c "while ! curl -s http://rabbitmq:15672 > /dev/null; do echo waiting for 3s; sleep 3; done" | |
go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = `${pm.environment.get("base_url")}/signin`; | |
const email = pm.environment.get("email"); | |
const password = pm.environment.get("password"); | |
const postRequest = { | |
url: url, | |
method: "POST", | |
header: "Content-Type:application/json", | |
body: { | |
mode: "application/json", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Coord = Coord Integer Integer | |
-- instance Eq Coord where | |
-- (==) (Coord x1 y1) (Coord x2 y2) = x1 == x2 && y1 == y2 | |
instance Show Coord where | |
show (Coord x y) = "(" ++ show x ++ "," ++ show y ++ ")" | |
-- instance Eq Coord where | |
-- (==) c1 c2 = x1 == x2 && y1 == y2 | |
-- where |
OlderNewer