Skip to content

Commit 1659f70

Browse files
committed
Revert "allow ability to skip single-shot upload test"
This reverts commit b9bf49b. Signed-off-by: Josh Dolitsky <[email protected]>
1 parent b9bf49b commit 1659f70

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

conformance/02_push_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ var test02Push = func() {
6262

6363
g.Specify("POST request with digest and blob should yield a 201 or 202", func() {
6464
SkipIfDisabled(push)
65-
RunOnlyIfNot(skipSingleShotUploadTest)
6665
req := client.NewRequest(reggie.POST, "/v2/<name>/blobs/uploads/").
6766
SetHeader("Content-Length", configBlobContentLength).
6867
SetHeader("Content-Type", "application/octet-stream").
@@ -81,7 +80,6 @@ var test02Push = func() {
8180

8281
g.Specify("GET request to blob URL from prior request should yield 200 or 404 based on response code", func() {
8382
SkipIfDisabled(push)
84-
RunOnlyIfNot(skipSingleShotUploadTest)
8583
req := client.NewRequest(reggie.GET, "/v2/<name>/blobs/<digest>", reggie.WithDigest(configBlobDigest))
8684
resp, err := client.Do(req)
8785
Expect(err).To(BeNil())

conformance/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,10 @@ and another with no layers. If the empty-layer test is causing a failure, it can
102102
environment:
103103

104104
```
105+
# Enable layer upload
105106
OCI_SKIP_EMPTY_LAYER_PUSH_TEST=1
106107
```
107108

108-
Some registries support pushing blobs with a single POST request; however, this behaviour is not strictly required.
109-
If you wish to disable the single POST test (a.k.a. the "single shot upload"), it can be skipped by setting the
110-
following in the environment:
111-
112-
```
113-
OCI_SKIP_SINGLE_SHOT_UPLOAD_TEST=1
114-
```
115-
116109
The test suite will need access to a second namespace. This namespace is used to check support for cross-repository mounting
117110
of blobs, and may need to be configured on the server-side in advance. It is specified by setting the following in
118111
the environment:

conformance/setup.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const (
5757
envVarContentDiscovery = "OCI_TEST_CONTENT_DISCOVERY"
5858
envVarContentManagement = "OCI_TEST_CONTENT_MANAGEMENT"
5959
envVarPushEmptyLayer = "OCI_SKIP_EMPTY_LAYER_PUSH_TEST"
60-
envVarSingleShotUpload = "OCI_SKIP_SINGLE_SHOT_UPLOAD_TEST"
6160
envVarBlobDigest = "OCI_BLOB_DIGEST"
6261
envVarManifestDigest = "OCI_MANIFEST_DIGEST"
6362
envVarEmptyLayerManifestDigest = "OCI_EMPTY_LAYER_MANIFEST_DIGEST"
@@ -130,7 +129,6 @@ var (
130129
runContentDiscoverySetup bool
131130
runContentManagementSetup bool
132131
skipEmptyLayerTest bool
133-
skipSingleShotUploadTest bool
134132
deleteManifestBeforeBlobs bool
135133
Version = "unknown"
136134
)
@@ -291,7 +289,6 @@ func init() {
291289
runContentDiscoverySetup = true
292290
runContentManagementSetup = true
293291
skipEmptyLayerTest = false
294-
skipSingleShotUploadTest = false
295292
deleteManifestBeforeBlobs = false
296293

297294
if os.Getenv(envVarTagName) != "" &&
@@ -305,7 +302,6 @@ func init() {
305302
}
306303

307304
skipEmptyLayerTest, _ = strconv.ParseBool(os.Getenv(envVarPushEmptyLayer))
308-
skipSingleShotUploadTest, _ = strconv.ParseBool(os.Getenv(envVarSingleShotUpload))
309305
deleteManifestBeforeBlobs, _ = strconv.ParseBool(os.Getenv(envVarDeleteManifestBeforeBlobs))
310306

311307
reportJUnitFilename = "junit.xml"

0 commit comments

Comments
 (0)