From 1fde10d8d452cd2f3d51a25a715a15b3b4b5e5ca Mon Sep 17 00:00:00 2001 From: Nicola Sirena Date: Tue, 7 Nov 2023 10:28:13 +0100 Subject: [PATCH] Enable test of mysql_repo resource in CI/CD process Add tag:install_ prefix in the control for mysql_repo to ensure that this test is executed in our CI/CD process Signed-off-by: Nicola Sirena --- cookbooks/aws-parallelcluster-slurm/kitchen.slurm-install.yml | 2 +- .../aws-parallelcluster-slurm/test/controls/mysql_repo_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-install.yml b/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-install.yml index 2c665adc5..04666c35a 100644 --- a/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-install.yml +++ b/cookbooks/aws-parallelcluster-slurm/kitchen.slurm-install.yml @@ -40,7 +40,7 @@ suites: - recipe[aws-parallelcluster-tests::test_resource] verifier: controls: - - mysql_repo_added + - tag:install_mysql_repo_added attributes: resource: mysql_repo:add - name: munge diff --git a/cookbooks/aws-parallelcluster-slurm/test/controls/mysql_repo_spec.rb b/cookbooks/aws-parallelcluster-slurm/test/controls/mysql_repo_spec.rb index 46340a2e9..3b1839e59 100644 --- a/cookbooks/aws-parallelcluster-slurm/test/controls/mysql_repo_spec.rb +++ b/cookbooks/aws-parallelcluster-slurm/test/controls/mysql_repo_spec.rb @@ -9,7 +9,7 @@ # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. # See the License for the specific language governing permissions and limitations under the License. -control 'mysql_repo_added' do +control 'tag:install_mysql_repo_added' do if os_properties.ubuntu? describe file('/etc/apt/sources.list.d/mysql.list') do it { should exist }