Skip to content

Instantly share code, notes, and snippets.

@ivancorrales
Last active February 17, 2021 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivancorrales/7cf3a5927cdad9fb58037d3fd80ffbb2 to your computer and use it in GitHub Desktop.
Save ivancorrales/7cf3a5927cdad9fb58037d3fd80ffbb2 to your computer and use it in GitHub Desktop.
description = <<EOF
This feature verify that API works as expected
EOF
includes = [
"includes/database.hcl",
"includes/api.hcl",
"happyPath.hcl",
"signUp-failures.hcl",
"signIn-failures.hcl",
"showProfile-failures.hcl"
]
input {
arg baseApi {
description = "URL base of the API"
default = "http://localhost:3000/api"
}
arg mongoConn {
description = "a map with connection details { uri='', username='', password=''}"
}
}
before each {
call dropCollection{
with {
mongoUri = mongoConn.uri
credentials = {
username = mongoConn.username
password = mongoConn.password
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment