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

Make HTTPFileLoader more intelligent (Fixes #128) #132

Conversation

ptzianos
Copy link
Contributor

Splits away the Loader and its implementations into the pkg/files module and adds more logic to the HTTPFileLoader so that it can append the target file to the URL if it's missing. Tests are also added to make sure that the HTTPFileLoader is 100% covered now.
A new interface and a mock implementation has been added for HTTP requests.

@ptzianos ptzianos requested a review from northdpole April 12, 2024 23:10
@ptzianos ptzianos self-assigned this Apr 12, 2024
@ptzianos ptzianos force-pushed the ptzianos/make-file-loading-more-interlligent branch from 16d6e5f to 323f11f Compare April 16, 2024 10:17
cmd/draconctl/pipelines/build.go Show resolved Hide resolved
pkg/pipelines/tektonV1Beta1.go Show resolved Hide resolved
pkg/manifests/tekton.go Show resolved Hide resolved
pkg/manifests/decoder.go Show resolved Hide resolved
pkg/manifests/decoder.go Show resolved Hide resolved
pkg/manifests/tekton.go Show resolved Hide resolved
@ptzianos ptzianos force-pushed the ptzianos/make-file-loading-more-interlligent branch 2 times, most recently from 3ff8220 to 323f11f Compare April 16, 2024 13:50
Pavlos Tzianos added 2 commits April 16, 2024 15:01
Splits away the Loader and its implementations into the pkg/files module
and adds more logic to the HTTPFileLoader so that it can append the
target file to the URL if it's missing. Tests are also added to make
sure that the HTTPFileLoader is 100% covered now.
A new interface and a mock implementation has been added for HTTP
requests.
@ptzianos ptzianos force-pushed the ptzianos/make-file-loading-more-interlligent branch from 323f11f to 51596f0 Compare April 16, 2024 14:02
@ptzianos ptzianos merged commit 51596f0 into smithy-security:main Apr 16, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants