-
Notifications
You must be signed in to change notification settings - Fork 15
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
Implement sagas for save and upsate of SUMA settings #2338
Implement sagas for save and upsate of SUMA settings #2338
Conversation
336ba43
to
79fe397
Compare
79fe397
to
f2045cf
Compare
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.
Only test names might be specified a bit, but not a blocker 👍
password: faker.word.noun(), | ||
ca_cert: '', | ||
}; | ||
const errors = [ |
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.
OCD alert: mismatching errors based on the input.
Providing an empty username username: '',
would result in an extra error besides url/ca_cert.
Feel free to keep like this, tho 😄 The test still tests what it's supposed to test.
}); | ||
|
||
describe('Updating Software Updates settings', () => { | ||
it('should successfully save software updates settings', async () => { |
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.
maybe a copy/pasta from previous test
it('should successfully save software updates settings', async () => { | |
it('should successfully change software updates settings', async () => { |
]); | ||
}); | ||
|
||
it('should have errors on failed saving', async () => { |
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.
it('should have errors on failed saving', async () => { | |
it('should have errors on failed update', async () => { |
Description
As above, just implementing the sagas to save and update SUMA settings 👍
How was this tested?
Jest tests