Start HTTP server to replace Devfile Registry server in the tests#7154
Merged
rm3l merged 4 commits intoredhat-developer:mainfrom Dec 1, 2023
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
|
Skipping CI for Draft Pull Request. |
Contributor
🔨 Deploy Preview deleted from internal cluster!
|
9befe4d to
6215c6e
Compare
6215c6e to
3d15833
Compare
3d15833 to
e62bfc9
Compare
e62bfc9 to
0335059
Compare
0335059 to
25cd60d
Compare
25cd60d to
790b776
Compare
efcf9db to
fa023d7
Compare
This allows us to remove the dependency on a Devfile Registry server. We no longer want to have a long-running cluster to which a Devfile registry is deployed. And relying on the public staging registry makes those tests sometimes fail, due to the frequency of updates and changes that break our tests. Now, an HTTP Server instance is started on a random ports and serves the OCI artifacts for the stacks that are useful for our tests. Note that this will now be the default behavior, unless the DEVFILE_REGISTRY env var is explicitly set. This allows us to also update the stacks at our own pace. The process for updating is as follows: 1- update the stacks folder under tests/helper/registry_server/testdata/registry 2- run 'generate-test-registry-build' to regenerate the Devfile Index and OCI archives for stack extra-files 3- Commit and push the changes
The registry URL is now by default.
fa023d7 to
d52a037
Compare
d52a037 to
fa59a84
Compare
For some reason, "scp" was not able to find the destination folder.
fa59a84 to
5250cdf
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.








What type of PR is this:
/area testing
What does this PR do / why we need it:
Which issue(s) this PR fixes:
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: