nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

resource attributes in test cases should have double quotes #96

Open logicminds opened 6 years ago

logicminds commented 6 years ago

Attributes that contain single quotes should either be escaped or use double quotes when the test is created.

logicminds commented 6 years ago

example case

command  => "Invoke-Sqlcmd -Query \"sp_configure 'show adv', 1; RECONFIGURE WITH OVERRIDE; EXEC sp_configure 'contained database authentication', 1;\"",`   and then the test for it ```command: 'Invoke-Sqlcmd -Query \'sp_configure 'show adv', 1; RECONFIGURE WITH OVERRIDE; EXEC sp_configure 'contained database authentication', 1;\'',