May 2018
Intermediate to advanced
256 pages
7h 6m
English
For our first test, we'll use the MySQL command-line client to connect to the database we've configured and verify that we can log in using the username and password that we specified earlier. Because we're not applying the new roles and profiles to any machines, this test will fail when we run it. First, install the MYSQL client on the CI server. We'll use the following command to verify the connection to the database:
# yum install -y mariadb
Verify that the command was installed with the which command:
# which mysql
You should see /bin/mysql in the output.
Although we could write the test directly in the configuration for the build in Jenkins, it's a best practice to include tests with the source code. Create a directory ...
Read now
Unlock full access