Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement handler to create a project #336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hiro-o918
Copy link

@hiro-o918 hiro-o918 commented Jul 15, 2024

What

I made an HTTP handler to create a GCP project using a client of Cloud Resource Manager

Why

Programmatically switching projects among tests can be useful to avoid conflicting records to check.

For example:

  • test case 1: testing a method inserting into dataset_foo.bar_table
  • test case 2: testing a method counting the number of records in dataset_foo.bar_table

In this case, test case 2 is affected by test case 1.
To avoid this issue, we can create a project with random suffixes by the client and provide an isolated environment.
This is more flexible than providing all the schema using yaml before the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant