Skip to content

Commit

Permalink
Merge pull request #72 from killbill/fix-plugin-tests
Browse files Browse the repository at this point in the history
plugins: pass plugin version when uninstalling plugin
  • Loading branch information
reshmabidikar authored Mar 25, 2024
2 parents a57eece + 4a909c1 commit bb75f21
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion killbill-integration-tests/plugins/adyen/test_adyen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
2 changes: 1 addition & 1 deletion killbill-integration-tests/plugins/avatax/test_avatax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_manual_commit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
2 changes: 1 addition & 1 deletion killbill-integration-tests/plugins/deposit/test_deposit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
@smtp_server&.shutdown_and_wait_for_completion
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def teardown
body = { 'CONFIGURE_ACTION': 'ACTION_CLEAR' }.to_json
KillBillClient::API.post(KILLBILL_PAYMENT_TEST_PREFIX + '/configure', body, {}, @options)

teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end
end
end
4 changes: 2 additions & 2 deletions killbill-integration-tests/plugins/plugin_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def setup_plugin_base(init_clock, plugin_key, plugin_version, plugin_props)
end
end

def teardown_plugin_base(plugin_key)
def teardown_plugin_base(plugin_key, plugin_version)
prepare_teardown_sequence(plugin_key) do |seq|
run_plugin_sequence('stop', plugin_key, nil, [], seq)
run_plugin_sequence('stop', plugin_key, plugin_version, [], seq)
end
teardown_base
end
Expand Down
2 changes: 1 addition & 1 deletion killbill-integration-tests/plugins/qualpay/test_qualpay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down
2 changes: 1 addition & 1 deletion killbill-integration-tests/plugins/stripe/stripe_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end
end
end
2 changes: 1 addition & 1 deletion killbill-integration-tests/plugins/vertex/test_vertex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def setup
end

def teardown
teardown_plugin_base(PLUGIN_KEY)
teardown_plugin_base(PLUGIN_KEY, PLUGIN_VERSION)
end

def test_healthcheck
Expand Down

0 comments on commit bb75f21

Please sign in to comment.