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

test: simplify group tests #163

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a34c326
test: extract helpers
SiasMey Dec 10, 2024
07b1fe6
test: remove unused params and mock setups
SiasMey Dec 10, 2024
ad06a5a
test: extract setting up mock for create
SiasMey Dec 10, 2024
1341fe7
test: shuffle group post mock setup
SiasMey Dec 10, 2024
f8da4fd
test: use shared helpers for setting up delete mocks
SiasMey Dec 11, 2024
21f03bb
test: creat helper for import mocks
SiasMey Dec 11, 2024
bd0cdc0
test: add nillable parent to group mock setup
SiasMey Dec 11, 2024
9fcfbc3
test: allow group delete to have empty parent (root)
SiasMey Dec 11, 2024
73841ed
test: use new helpers in UpdateGroupsResource test
SiasMey Dec 12, 2024
bbc4344
test: use create and delete helpers all over
SiasMey Dec 12, 2024
a2390fb
test: update createImportMocks to deal with nil parent
SiasMey Dec 12, 2024
5c87022
test: use new helpers for recreate updates
SiasMey Dec 12, 2024
a075f55
test: add helper to set up GroupUpdate mocks
SiasMey Dec 12, 2024
7f63574
test: gock.OffAll and root parent update helpers
SiasMey Dec 13, 2024
8deabb8
test: use import setup for update pre-plan test
SiasMey Dec 13, 2024
fab3ff7
test: change ids and names for basic create
SiasMey Dec 13, 2024
85b5890
test: update parent and id for import group
SiasMey Dec 13, 2024
e98ee65
test: re organize functions
SiasMey Dec 13, 2024
2f82521
test: pull up test values
SiasMey Dec 13, 2024
6edf0d7
test: update root values
SiasMey Dec 13, 2024
77efd65
test: extract values for root child creation
SiasMey Dec 13, 2024
ec89a87
test: extract constants for update test
SiasMey Dec 17, 2024
9296dc9
test: fix tests for update not passing groupID
SiasMey Dec 17, 2024
18f99f8
test: extract values for recreate update test
SiasMey Dec 17, 2024
6b2384f
test: extract testName to variable
SiasMey Dec 17, 2024
6b384ff
test: use sprintf on the test manifest
SiasMey Dec 17, 2024
6319592
test: use interpolation for another manifest
SiasMey Dec 17, 2024
f1c9401
test: use string interpolation for another manifest
SiasMey Dec 17, 2024
b004926
test: use string interpolation for yet another manifest
SiasMey Dec 17, 2024
ae9adbc
test: interpolate more manifests
SiasMey Dec 17, 2024
91cb8a9
test: interpolate one more manifest
SiasMey Dec 17, 2024
4f9d97c
test: use "real" parent_id for all requests
SiasMey Dec 17, 2024
911912a
test: extract group create request creation
SiasMey Dec 17, 2024
ca91fcb
test: use str for parentID instead of pointer
SiasMey Dec 17, 2024
9ae7b19
test: use string for delete group mock setup
SiasMey Dec 17, 2024
4e919ae
test: use string in update group mock setup
SiasMey Dec 17, 2024
fba9181
test: rename root test groups
SiasMey Dec 17, 2024
d326fd6
test: shrink if conditional body
SiasMey Dec 17, 2024
9afa80d
test: make root parent check consistent
SiasMey Dec 18, 2024
fbec05d
Merge remote-tracking branch 'origin/main' into sm/test/uxi-9657-stre…
SiasMey Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading