Skip to content
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

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

dottorblaster
Copy link
Contributor

Description

As above, just implementing the sagas to save and update SUMA settings 👍

How was this tested?

Jest tests

@dottorblaster dottorblaster added the enhancement New feature or request label Feb 19, 2024
@dottorblaster dottorblaster self-assigned this Feb 19, 2024
@dottorblaster dottorblaster force-pushed the implement-sagas-suma-settings-save-update branch from 336ba43 to 79fe397 Compare February 19, 2024 15:15
@dottorblaster dottorblaster force-pushed the implement-sagas-suma-settings-save-update branch from 79fe397 to f2045cf Compare February 19, 2024 15:15
@dottorblaster dottorblaster marked this pull request as draft February 19, 2024 15:25
@dottorblaster dottorblaster marked this pull request as ready for review February 20, 2024 08:49
Copy link
Member

@nelsonkopliku nelsonkopliku left a 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 = [
Copy link
Member

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 () => {
Copy link
Member

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

Suggested change
it('should successfully save software updates settings', async () => {
it('should successfully change software updates settings', async () => {

]);
});

it('should have errors on failed saving', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it('should have errors on failed saving', async () => {
it('should have errors on failed update', async () => {

@dottorblaster dottorblaster merged commit cb00d11 into main Feb 20, 2024
24 checks passed
@dottorblaster dottorblaster deleted the implement-sagas-suma-settings-save-update branch February 20, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants