Skip to content

Commit dbcd04a

Browse files
committed
(maint) fix future parser acceptance failures
- Previously during SQL Server install as part of the pre-suite, a manifest was generated with: features => SQL Future parser does not like this, and expects an actual array with quoted values like features => [ 'SQL' ]
1 parent 36a45a8 commit dbcd04a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/sql_testing_helpers.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def mount_iso(host, opts = {})
2121

2222
def install_sqlserver(host, opts = {})
2323
# this method installs SQl server on a given host
24-
features = opts[:features]
24+
features = opts[:features].map{ |x| "'#{x}'"}.join(', ')
2525
pp = <<-MANIFEST
2626
sqlserver_instance{'MSSQLSERVER':
2727
source => 'H:',
28-
features => #{features},
28+
features => [ #{features} ],
2929
security_mode => 'SQL',
3030
sa_pwd => 'Pupp3t1@',
3131
sql_sysadmin_accounts => ['Administrator'],
@@ -94,7 +94,7 @@ def base_install(sql_version)
9494
# Mount the ISO on the agent
9595
mount_iso(host, iso_opts)
9696
# Install Microsoft SQL on the agent before running any tests
97-
install_sqlserver(host, {:features => 'SQL'})
97+
install_sqlserver(host, {:features => ['SQL']})
9898
end
9999

100100
def validate_sql_install(host, opts = {}, &block)

0 commit comments

Comments
 (0)