Status | (Draft / Under Review / Approved / Deployed) |
---|---|
Targets | (Backend / Frontend) |
Author(s) | Names of the people writing the RFC |
Developer(s) | Names of the people responsible for the implementation of the RFC |
Reviewer(s) | Names of the people verifying the RFC |
Updated | YYYY-MM-DD |
This file contains hidden or 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
name: Override Merge | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
merge_comment: | |
# Run only if | |
# 1. The comment was made on a PR. |
This file contains hidden or 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: 0.2 | |
env: | |
variables: | |
ECR_REGISTRY: 1234567890.dkr.ecr.ap-southeast-1.amazonaws.com | |
ECR_REPOSITORY: repository | |
secrets-manager: | |
DOCKER_HUB_USERNAME: arn:aws:secretsmanager:ap-southeast-1:1234567890:secret:dockerhub:username | |
DOCKER_HUB_PASSWORD: arn:aws:secretsmanager:ap-southeast-1:123457890:secret:dockerhub:password |
This file contains hidden or 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: 0.2 | |
env: | |
variables: | |
ECR_REGISTRY: 1234567890.dkr.ecr.ap-southeast-1.amazonaws.com | |
ECR_REPOSITORY: repository | |
secrets-manager: | |
DOCKER_HUB_USERNAME: arn:aws:secretsmanager:ap-southeast-1:1234567890:secret:dockerhub:username | |
DOCKER_HUB_PASSWORD: arn:aws:secretsmanager:ap-southeast-1:123457890:secret:dockerhub:password |
This file contains hidden or 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
def test_sign_in_01(client): | |
# Sign in a user by testing the ``POST /signin/`` API endpoint. | |
# Uisng the same user as created in the ``test_sign_up_01()`` test. | |
response = client.post( | |
"/signin/", | |
json={"username": "username", "password": "password"}, | |
) | |
assert response.status_code == 200 | |
assert response.json == {"message": "Logged in"} |
This file contains hidden or 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
def test_sign_up_01(client): | |
# Sign up a user by testing the ``POST /signup/`` API endpoint. | |
response = client.post( | |
"/signup/", | |
json={"username": "username", "password": "password"}, | |
) | |
assert response.status_code == 200 | |
assert response.json == {"message": "Registration successful"} | |
# If you want to go an extra step, can also check if the entry was created |
This file contains hidden or 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
import pytest | |
def pytest_sessionstart(session): | |
"""This is run before the tests are run. | |
So, if you want to make any changes like creating a dummy ``.env`` file, | |
you can do so here. | |
""" | |
pass |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -xe | |
# build binary | |
GOARCH=amd64 GOOS=linux go build -o bin/application application.go | |
# create zip containing the bin, assets and .ebextensions folder | |
zip -r uploadThis.zip bin public .ebextensions |
This file contains hidden or 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
make: ./build.sh |
This file contains hidden or 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
web: bin/application |
NewerOlder