Giter Site home page Giter Site logo

bigtesty-example's Introduction

bigtesty-example

This project shows examples with BigQuery integration tests launched with BigTesty.
BigTesty is a framework that allows to create Integration Tests with BigQuery on a real and short-lived Infrastructure.

Run integration tests with BigTesty

 docker run -it \
    -e GOOGLE_PROJECT=$PROJECT_ID \
    -e SA_EMAIL=$SA_EMAIL \
    -e GOOGLE_REGION=$LOCATION \
    -e PULUMI_BACKEND_URL=$IAC_BACKEND_URL \
    -e ROOT_TEST_FOLDER=$ROOT_TEST_FOLDER \
    -e ROOT_TABLES_FOLDER="$ROOT_TABLES_FOLDER" \
    -e TABLES_CONFIG_FILE_PATH="$TABLES_CONFIG_FILE_PATH" \
    -e BIGTESTY_STACK_NAME=bigtesty \
    -e PULUMI_CONFIG_PASSPHRASE=gcp_fake_passphrase \
    -v $(pwd)/tests:/opt/bigtesty/tests \
    -v $(pwd)/tests/tables:/opt/bigtesty/tests/tables \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v $HOME/.config/gcloud:/opt/bigtesty/.config/gcloud \
    bigtesty-pulumi

Run integration tests with Cloud Build

gcloud builds submit \
    --project=$PROJECT_ID \
    --region=$LOCATION \
    --config run-tests-bigtesty.yaml \
    --substitutions _IAC_BACKEND_URL=$IAC_BACKEND_URL \
    --verbosity="debug" .
gcloud beta builds triggers create manual \
    --project=$PROJECT_ID \
    --region=$LOCATION \
    --name="run-tests-bigtesty" \
    --repo="https://github.com/tosun-si/bigtesty-example" \
    --repo-type="GITHUB" \
    --branch="main" \
    --build-config="run-tests-bigtesty.yaml" \
    --substitutions _SA_EMAIL=$SA_EMAIL,_IAC_BACKEND_URL=$IAC_BACKEND_URL,_ROOT_TEST_FOLDER=$ROOT_TEST_FOLDER \
    --verbosity="debug"

bigtesty-example's People

Contributors

tosun-si avatar

Watchers

Guillaume Leroy avatar  avatar  avatar

bigtesty-example's Issues

Remove the gcloud SDK from the Docker image

Remove the gcloud SDK from the Docker image.

The SDK was useful previously to execute BigTesy with Docker locally.

Now we can use the Python package to test locally.

The gcloud sdk has a big size and we want to optimize the image, with the deletion of the sdk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.