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

[feature]: add test pipeline for testing Postgres parser using different applications #1880

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

Conversation

harshsbhat
Copy link

@harshsbhat harshsbhat commented May 18, 2024

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.

Copy link

github-actions bot commented May 18, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Copy link

@github-actions github-actions bot left a 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>
@harshsbhat
Copy link
Author

PR for issue #1880 @gouravkrosx

@harshsbhat
Copy link
Author

harshsbhat commented May 18, 2024

I have read the CLA Document and I hereby sign the CLA

@harshsbhat
Copy link
Author

I have read the CLA Document and I hereby sign the CLA .

@harshsbhat
Copy link
Author

recheck

@nehagup nehagup requested a review from gouravkrosx May 18, 2024 11:44
@slayerjain
Copy link
Member

recheck

1 similar comment
@harshsbhat
Copy link
Author

recheck

@harshbhat04
Copy link

I have read the CLA Document and I hereby sign the CLA

@harshbhat04
Copy link

recheck

@gouravkrosx
Copy link
Member

@harshbhat04, The workflow has not been triggered, Please check.

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.

[feature]: add test pipeline for testing Postgres parser using different applications
4 participants