我正在为一个木偶模块编写一个rspec测试,该模块进行以下调用:
lookupvar('services::service')
当我运行测试时,我得到以下警告:Could not look up qualified variable 'services::service'; class services has not been evaluated
我最终将include ::services
添加到spec/fixtures/manifest/site.pp