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

First step to running integration tests against external databases #468

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

erikbra
Copy link
Owner

@erikbra erikbra commented Mar 10, 2024

First step to running integration tests against external databases

  • Made the tests pick up environment variable GrateTestConfig__AdminConnectionString, and use that if available.
    • If no connectionstring is set, we use TestContainers
  • Add Terraform scripts that create a small environment in Azure to run tests against
    • Run Terraform to set up test environment before running tests, tear down environment after running tests.
    • Finished MariaDB, using Azure Container App for now
    • Planning on adding all databases, and variations of them (Azure AD login, having admin access, not having admin access, etc)
  • Added separate integration tests GitHub actions pipeline to run the tests

@erikbra erikbra force-pushed the chore/separate-cmdline-tests-step branch 2 times, most recently from 484941d to 61301a2 Compare March 11, 2024 16:13
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:05 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 11, 2024 20:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 21:50 — with GitHub Actions Inactive
@erikbra erikbra force-pushed the chore/separate-cmdline-tests-step branch from 546e00a to 5aaeafb Compare March 12, 2024 21:51
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 21:51 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 21:53 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 21:53 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 21:53 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 21:53 — with GitHub Actions Inactive
@erikbra erikbra force-pushed the chore/separate-cmdline-tests-step branch from 5aaeafb to 6e33d8c Compare March 12, 2024 22:07
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:07 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:08 — with GitHub Actions Inactive
@erikbra erikbra force-pushed the chore/separate-cmdline-tests-step branch from 6e33d8c to 3c43b69 Compare March 12, 2024 22:11
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:11 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:13 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:13 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:13 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:13 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:20 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:21 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:21 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:21 — with GitHub Actions Inactive
@erikbra erikbra temporarily deployed to integration-tests March 12, 2024 22:22 — with GitHub Actions Inactive
* Made the tests pick up environment variable GrateTestConfig__AdminConnectionString, and use that if available.
  - If no connectionstring is set, we use TestContainers
* Add terraform scripts that create a small environment in Azure to run tests against
  - Run Terraform to set up test environment before running tests, tear down environment after running tests.
  - Finished MariaDB, using Azure Container App for now
  - Planning on adding all databases, and variations of them (Azure AD login, having admin access, not having admin access, etc)
* Added separate integration tests GitHub actions pipeline to run the tests
@erikbra erikbra force-pushed the chore/separate-cmdline-tests-step branch from 80feb58 to 7d96664 Compare March 12, 2024 22:34
@erikbra erikbra changed the title Working on running tests agains external databases First step to running integration tests against external databases Mar 12, 2024
@erikbra erikbra marked this pull request as ready for review March 12, 2024 22:37
@erikbra erikbra merged commit 771dc9a into main Mar 12, 2024
18 checks passed
@erikbra erikbra deleted the chore/separate-cmdline-tests-step branch March 12, 2024 22:40
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