Comments (5)
maybe not, we need better mocks?
from image.
Can we get away with having integration tests against real/live servers only in skopeo
, per #27 ? Otherwise we are at high risk of writing and updating exactly the same tests twice, once using the CLI and once using the API.
Local server-less unit tests would still be useful, of course. An 80%, mock-less, solution, would be to split the send HTTP request+parse response methods into
- “prepare HTTP request” helper
- “parse HTTP response” helper
- top level which calls the prepare helper, executes the request, and calls the parse helper.
Then we could trivially unit-test the two helpers with no IO (and the top level would remain not unit-tested). (I’m sure there is a fancy name for this pattern but I can’t recall right now.)
from image.
@runcom @mtrmac @vrothberg What is the state of this issue. It is two years old, can we close it?
from image.
I think this issue is fixed.
from image.
New contributors are really baffled by make test-skopeo
; moving the integration tests directly into this repository would be nice. But I suppose that’s different from this “have some tests at all” issue.
from image.
Related Issues (20)
- Image upload fails if PATCH lasts longer than expiry time of an OAuth token HOT 3
- Copy with encryption does not trigger a required conversion when the destination accepts all manifest formats HOT 1
- issues about copy with encryption/decryption for docker image format HOT 3
- Non-digested containers-storage references should resolve to the manifest that exists HOT 1
- Consider copying associated cosign artifacts HOT 1
- Fails to pull image from Quay Enterprise with auth and proxy storage enabled HOT 1
- Sigstore: allow registry substitution for `signedIdentity`. HOT 5
- Sigstore: Signed manifest list does not find signature HOT 2
- Can the server be upgraded to TLS1.2? HOT 2
- http auth scope parsing fails with multiple scopes HOT 7
- Creation of Zstd:chunked layers seems racy HOT 5
- Docs unclear about whether ostree is default HOT 1
- Warn if `registries.conf` contains config keys the consumer does not intend to use HOT 12
- inquiry about next release HOT 2
- Request for Sigstore signature verification enhancement and flexibility in cosign verify. HOT 1
- Request for Feedback: OCI image-spec 1.1.0 HOT 7
- `NewImage` does not fallback to other registries if image is not fully readable from a mirror HOT 5
- Fails to convert manifest.List to manifest.Schema2List HOT 2
- "unexpected MIME type for sigstore attachment manifest" when pulling a Cosign-ed image from Artifactory HOT 1
- podman search seems not to use registries.conf mirror for docker.io HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image.