Skip to content

Commit d122bfd

Browse files
committed
fixed spec tests against new db2_exec_command method param
1 parent c1992d2 commit d122bfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/unit/puppet/type/db2_catalog_database_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
let(:provider) { resource.provider }
6868

6969
it "should execute the correct db2 commands" do
70-
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 #{scenario[:expect]}", { "DB2INSTANCE" => "db2inst" })
71-
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 terminate", { "DB2INSTANCE" => "db2inst" })
70+
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 #{scenario[:expect]}", { "DB2INSTANCE" => "db2inst" }, true)
71+
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 terminate", { "DB2INSTANCE" => "db2inst" }, true)
7272
provider.create
7373
end
7474
end

spec/unit/puppet/type/db2_catalog_node_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@
138138
let(:provider) { resource.provider }
139139

140140
it "should execute the correct db2 commands" do
141-
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 #{scenario[:expect]}", { "DB2INSTANCE" => "db2inst" })
142-
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 terminate", { "DB2INSTANCE" => "db2inst" })
141+
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 #{scenario[:expect]}", { "DB2INSTANCE" => "db2inst" }, true)
142+
provider.expects(:exec_db2_command).with("/opt/ibm/db2/V11.1/bin/db2 terminate", { "DB2INSTANCE" => "db2inst" }, true)
143143
provider.create
144144
end
145145
end

0 commit comments

Comments
 (0)