-
Notifications
You must be signed in to change notification settings - Fork 489
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
dynamic cockpit link resolution via well known endpoint #4297
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2eeae23
chore(cockpit-links) refactor into a common react
AlexanderSkrock 55e9e93
feat(well-known-api) dynamic webapp url resolution
AlexanderSkrock 3a884db
fix(cockpit-links): issues with test cases
AlexanderSkrock 9d27ce9
chore(cockpit-links): additional test cases for default handling
AlexanderSkrock e4be694
fix(wellknown-api): aligned field names
AlexanderSkrock 53f03b3
chore(rest-api): extracted duplicate code
AlexanderSkrock 81d896f
chore(cockpit-link): fix linting
AlexanderSkrock 15d942a
test(client): use constants for status codes
AlexanderSkrock 5788cba
chore(validator): fix linting
AlexanderSkrock 3b47010
chore(tests) align test case with basic auth valiation
AlexanderSkrock 80101e4
chore(cockpit-link): remove unnecessary useMemo usage
AlexanderSkrock 4442452
chore(cockpit-link): remove unnecessary useMemo usage
AlexanderSkrock a08e5cb
chore(logging): use debug library instead of console.debug
AlexanderSkrock 39a42a3
chore(cockpit-link): remove unnecessary useMemo usage
AlexanderSkrock ddc6529
chore(cockpit-link): remove unnecessary useMemo usage
AlexanderSkrock 8a2a0b9
chore(tests): migrate single testcase to react testing library
AlexanderSkrock 165e746
chore(tests): migrate the remaining testcases to react testing library
AlexanderSkrock 57cd89f
test: apply suggestions from code review
barmac 92ef9a4
test: fix syntax errors
barmac 9f3108e
tests(deployment-overlay): fix submit simulation
AlexanderSkrock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 understand that the current test suite for the deployment tool is in bad shape, but I'd rather expect us to properly make use of
act
andwaitFor
instead of introducing moresetTimeout
calls. Let's not make the tests depend on the time.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 am not sure about the Formik workaround with the
isOnBeforeSubmit
flag which seems to stop working as soon as I replacesetTimeout
.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 managed to get this working now, but I had to introduce a new dependency
@testing-library/react
so we have those calls available.