show dbs
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.1 (Rough and ready!) | |
| Author: David Sim (nationalinterest on discord) | |
| Date: 22 July 2021 | |
| Description: Creates links to | |
| TODO: Validate whether the input information is valid | |
| */ | |
| /* Instructions for setup |
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
| const { SF_username, SF_password, SF_login_url } = Cypress.env() | |
| describe('Programmatically log in to SF app', () => { | |
| it('makes XHR req & loads dashboard', () => { | |
| Cypress.log({name: 'loginViaOAuth'}); | |
| cy.request({ | |
| method: 'POST', | |
| url: SF_login_url, | |
| body: { |
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
| const { SF_username, SF_password, SF_client_id, SF_client_secret, SF_security_token } = Cypress.env() | |
| describe('Programmatically log in to SF app', () => { | |
| it('makes XHR req & loads dashboard', () => { | |
| Cypress.log({name: 'loginViaOAuth'}); | |
| // request access token from SF OAuth endpoint | |
| const oAuthTokenOptions = { | |
| method: 'POST', |
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
| /// <reference types="cypress" /> | |
| import { random } from 'lodash' | |
| const apiGraphQL = `${Cypress.env("apiUrl")}/graphql`; | |
| const hasMutation = (req, operationName) => { | |
| return req.body.hasOwnProperty("query") && req.body.query.includes(`mutation ${operationName}`) | |
| } | |
| const hasQuery = (req, operationName) => { |
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 | |
| # Example: | |
| # ./find-ecr-image.sh foo/bar mytag | |
| if [[ $# -lt 2 ]]; then | |
| echo "Usage: $( basename $0 ) <repository-name> <image-tag>" | |
| exit 1 | |
| fi | |
| IMAGE_META="$( aws ecr describe-images --repository-name=$1 --image-ids=imageTag=$2 2> /dev/null )" |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| #!/bin/bash | |
| branchname=${1:-$(git rev-parse --abbrev-ref HEAD)} | |
| if ! [ -x "$(command -v jq)" ]; then | |
| echo 'Error: "jq" is not installed.' >&2 | |
| exit 1 | |
| fi | |
| if [ ! $SECRET_GH_TOKEN ]; then |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| const internalFlexRoute = curry((httpVerb: string, route: string) => { | |
| return cy.route(httpVerb, route); | |
| }); | |
| const flexRoute = curry((httpVerb: string, route: string, response: object) => { | |
| const route = internalFlexroute(httpVerb, route); | |
| return route(response); | |
| }); |