Skip to content

Commit

Permalink
ap-5119: Temp commit to allow for testing on uat/locally
Browse files Browse the repository at this point in the history
do not merge
  • Loading branch information
kmahern committed Aug 27, 2024
1 parent 5adeeb7 commit 30b5ebd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Provider < ApplicationRecord
delegate :name, to: :firm, prefix: true, allow_nil: true

def update_details
return unless HostEnv.staging_or_production?
# Temporarily disable this guard clause to allow for testing on uat
# return unless HostEnv.staging_or_production?

# only schedule a background job to update details for staging and live
ProviderDetailsCreatorWorker.perform_async(id)
Expand Down
Binary file modified helm_deploy/apply-for-legal-aid/values-uat.yaml
Binary file not shown.
16 changes: 8 additions & 8 deletions spec/models/provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
end
end

context "when not staging or production" do
before { allow(HostEnv).to receive(:staging_or_production?).and_return(false) }

it "does not schedule a background job" do
expect(ProviderDetailsCreatorWorker).not_to receive(:perform_async).with(provider.id)
provider.update_details
end
end
# context "when not staging or production" do
# before { allow(HostEnv).to receive(:staging_or_production?).and_return(false) }

# it "does not schedule a background job" do
# expect(ProviderDetailsCreatorWorker).not_to receive(:perform_async).with(provider.id)
# provider.update_details
# end
# end
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/requests/saml_sessions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@

it "does not schedule a job to update the provider details" do
expect(provider).to receive(:update_details).and_call_original
expect(ProviderDetailsCreatorWorker).not_to receive(:perform_async).with(provider.id)
expect(ProviderDetailsCreator).not_to receive(:call).with(provider)
# expect(ProviderDetailsCreatorWorker).not_to receive(:perform_async).with(provider.id)
# expect(ProviderDetailsCreator).not_to receive(:call).with(provider)
post_request
end
end
Expand Down

0 comments on commit 30b5ebd

Please sign in to comment.