-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add exception handling to LogOrganizationsApiCredentialStatusJob #2330
Conversation
expect(Rails.logger).to receive(:info).with(['Organizations API credential status', | ||
{ have_active_credentials: 1, | ||
have_incomplete_or_no_credentials: 0 }]) | ||
described_class.perform_now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make sure we are logging failure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a bit beyond the scope of the original goals for building the dashboard, but it's an easy lift, so I added a new expect()
to this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎫 Ticket
This is a follow-up to #2327 for DPC-4390.
🛠 Changes
ℹ️ Context
🧪 Validation