forked from greenplum-db/gpdb-archive
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration tests for gp configure, start, stop and status commands
This pull request adds integration tests for the gp command, which was introduced in Initial project spine PR. Code structure: Integration test files have been organized under the go- tools/test/integration directory. Within this directory, dedicated subdirectories have been created for each gp sub-command, including configure, start, status, and stop. These subdirectories contain distinct files for positive and negative test cases, as well as a file for setup and teardown functions and global variables. Also introduced a new make target named integration-test to run the integration tests. To run tests specifically for one of the commands, such as "gp start," you can use the "go test" command within the package directory (go- tools/test/integration/start). You also have the flexibility to execute an individual test case or testfunction by employing the "go test" command along with various options, including the "-run" flag. Here's an example: to run tests in the "TestSingleHostStartSuccess" function: go test -v -run TestSingleHostStartSuccess to run a specific test case within the "TestSingleHostStartSuccess": go test -v -run TestSingleHostStartSuccess/start_hub_and_agents_successfully Furthermore, a test helper package named "testutils" has been included. This package contains a collection of functions for general test assertions and verifications. Testing done: To run these integration tests, a dedicated job has been added to the existing pipeline through our pipeline.yml file. This job facilitates the execution of both single-host and multi-host tests, running them in parallel stages. Co-authored-by: Sruthi C P <sruthip2@vmware.com> Co-authored-by: Nihal Jain <jnihal@vmware.com>
- Loading branch information
Showing
22 changed files
with
2,863 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -eux -o pipefail | ||
|
||
ccp_src/scripts/setup_ssh_to_cluster.sh | ||
|
||
scp cluster_env_files/hostfile_all cdw:/tmp | ||
tar -xzf gp_binary/gp.tgz | ||
scp gp cdw:/home/gpadmin/ | ||
|
||
ssh -n cdw " | ||
set -eux -o pipefail | ||
export PATH=/usr/local/go/bin:\$PATH | ||
source /usr/local/greenplum-db-devel/greenplum_path.sh | ||
chmod +x gp | ||
gpsync -f /tmp/hostfile_all gp =:/usr/local/greenplum-db-devel/bin/gp | ||
cd /home/gpadmin/gpdb_src/gpMgmt/bin/go-tools | ||
./ci/scripts/generate_ssl_cert_multi_host.bash | ||
make integration-test FILE=/tmp/hostfile_all | ||
" |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.