commit 5ce3c5c42bc5e0e7360ed9868f828a0601b82641 Author: ZhongShengping Date: Fri Oct 9 09:59:55 2020 +0800 Include deps class in unit test for mysql Change-Id: I32d00bd5b8fdafd958299f511638759bc6544ece diff --git a/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_mysql_spec.rb b/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_mysql_spec.rb index 7ef85e6..fc65312 100644 --- a/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_mysql_spec.rb +++ b/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_mysql_spec.rb @@ -17,6 +17,8 @@ describe '{{cookiecutter.project_name}}::db::mysql' do required_params end + it { is_expected.to contain_class('{{cookiecutter.project_name}}::deps') } + it { should contain_openstacklib__db__mysql('{{cookiecutter.project_name}}').with( :user => '{{cookiecutter.project_name}}', :password => '{{cookiecutter.project_name}}pass',