Skip to content

Instantly share code, notes, and snippets.

View rabingaire's full-sized avatar
🇳🇵
Let everything happen

rabin rabingaire

🇳🇵
Let everything happen
View GitHub Profile
version: "3"
networks:
queue-test:
driver: bridge
services:
tests:
container_name: "tests"
build:
context: .
depends_on:
## 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 ./...
@rabingaire
rabingaire / postman-script.js
Last active August 14, 2020 05:01
Postman accesss token & refresh token get automation script
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",
@rabingaire
rabingaire / Example.hs
Created April 6, 2022 11:12
Haskell Typeclasses Example
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