Repository navigation
feat(tandoor): add integration tests - #11
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive integration test suite for Tandoor, including GitHub Actions workflow automation, new integration tests, and updates to development tooling and dependencies. The main focus is on enabling automated compatibility checks with Tandoor across supported versions and improving developer experience with enhanced pre-commit hooks and dependency management.
Integration Testing and Automation:
.github/workflows/tandoor-integration.yml) to automatically run integration tests for Tandoor on push, pull request, manual dispatch, and a weekly schedule. The workflow determines supported Tandoor versions frominternal/tandoor/version.goand tests each version using the new test suite.docker-composefile (integration/tandoor/compose.yaml) to spin up Tandoor and its database for integration testing, ensuring consistent test environments.Integration Test Suite:
integration/tandoor/authentication_test.go: Sets up Tandoor users, spaces, and obtains authentication tokens for tests.integration/tandoor/compatibility_test.go: Verifies Tandoor API version and authentication/connection handling.integration/tandoor/container_logs_test.go: Provides diagnostics by capturing and saving container logs on test failures.[1] [2] [3]
Development Tooling Improvements:
flake.nixto enhance pre-commit hooks:govetandgotesthooks.govethook for integration tests.[1] [2] [3]
go.modto add required dependencies for integration testing, includingtestcontainers-goand related libraries, and to upgrade several indirect dependencies.User Experience Enhancements:
genkitandrecipecommands, improving error visibility. [1] [2]