-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
[feature]: add test pipeline for testing Postgres parser using different applications #1880
base: main
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you and congratulations 🎉 for opening your very first pull request in keploy
Signed-off-by: harshsbhat <icybhat@gmail.com>
6dc34d7
to
424910e
Compare
PR for issue #1880 @gouravkrosx |
I have read the CLA Document and I hereby sign the CLA |
I have read the CLA Document and I hereby sign the CLA . |
recheck |
recheck |
1 similar comment
recheck |
I have read the CLA Document and I hereby sign the CLA |
recheck |
@harshbhat04, The workflow has not been triggered, Please check. |
closes [feature]: add test pipeline for testing Postgres parser using different applications
This pull request adds a new GitHub Actions workflow file named test-go-postgres.yml for testing the GinApp application with PostgreSQL. The workflow is designed to automate the testing process and includes the following steps:
Checkout Repository:
Checks out the main repository where the workflow is defined.
Download Keploy Build Binary: Downloads a Keploy build binary artifact from the actions artifact storage.
Give Permission to Binary: Sets executable permissions for the Keploy build binary.
Download Latest Keploy Binary: Downloads the latest Keploy binary release from GitHub and moves it to /usr/local/bin.
Get the Pilot for Tests and Mocks Assertion: Downloads the latest pilot binary for test and mock assertions, sets the executable permission, and moves it to /usr/local/bin.
Checkout to the Samples-Go Repository: Checks out the samples-go repository at the native-linux branch.
Build the Gin-Postgres Application: Navigates to the gin-postgres directory and builds the Go application.
Add Noisy Fields in the Config File: Placeholder step for adding any noisy fields in the configuration file if required.
Run Testing Script for Gin-Postgres Application: Uses a custom GitHub action (.github/actions/tester) to run the testing script for the gin-postgres application with specified parameters.
PostgreSQL Service:
Services Section: Configures a PostgreSQL service using the postgres:latest Docker image.
Environment Variables: Sets up the POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB environment variables.
Ports and Health Checks: Exposes port 5432 and sets up health checks to ensure the PostgreSQL service is ready before running the tests.
This new workflow ensures that the GinApp application using PostgreSQL is properly tested with Keploy, automating the setup and execution of tests in a CI/CD pipeline.
Changes Introduced:
Added a new GitHub Actions workflow file: .github/workflows/test-go-postgres.yml.
Instructions for Reviewers:
Please review the new workflow file for accuracy and completeness.
Ensure that the PostgreSQL service configuration aligns with the application's requirements.
Verify that the steps and commands for building and testing the application are correct.
I have read the CLA Document and I hereby sign the CLA.