-
Notifications
You must be signed in to change notification settings - Fork 77
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
Refactor: Test Framework and Update Docker Compose Configuration #699
Conversation
Signed-off-by: rohansx <[email protected]>
Signed-off-by: ChaudharyRaman <[email protected]> Signed-off-by: rohansx <[email protected]>
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 for your contribution. These commit messages don't meet the conventional requirement outlined in our CONTRIBUTING doc. Please revise them and add signed-off-by statements. Additionally, please rebase this pr.
scripts/validation_test.sh
Outdated
<<<<<<< HEAD | ||
======= | ||
DIR="$(dirname $0)" | ||
QUICK_START="${DIR}/quick_start.sh" | ||
ETCDCTL="docker exec -i client etcdctl --endpoints=http://172.20.0.3:2379,http://172.20.0.4:2379" | ||
LOCK_CLIENT="docker exec -i client /mnt/validation_lock_client --endpoints=http://172.20.0.3:2379,http://172.20.0.4:2379,http://172.20.0.5:2379" | ||
>>>>>>> ef29834 (chore: mount LOG_PATH as xline container log dir) |
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.
Please iron out the code conflict here.
scripts/validation_test.sh
Outdated
<<<<<<< HEAD | ||
# Source log functions | ||
source "${DIR}/log.sh" | ||
======= |
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.
Same as above.
scripts/validation_test.sh
Outdated
run_validation_tests() { | ||
# Example validation test | ||
log::info "Starting validation tests..." | ||
|
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.
Please remove the trailing space in this line.
scripts/validation_test.sh
Outdated
# Add your validation logic here, for example: | ||
# 1. Check if services are healthy | ||
# 2. Execute specific commands against your services | ||
|
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.
Same as above
Signed-off-by: rohansx <[email protected]>
Key Changes:
docker-compose.yml
file to manage the Xline cluster configuration, ensuring all services are correctly networked and equipped with the necessary volumes, ports, and environment settings.validation.sh
script to utilize Docker Compose for starting and stopping services, aligning it with the new docker-compose.yml configuration. This update simplifies the validation process and ensures compatibility with the Docker Compose setup.benchmark.sh
andquick_start.sh
documentation to reflect the new Docker Compose-based approach. This includes instructions on how to use the docker-compose file for setting up a development or testing environment and guidelines for executing validation and benchmark tests.These changes aim to streamline the project's testing framework, reduce redundancy, and improve the overall developer experience when testing and validating the Xline cluster's functionality.
Resolves: #692