Skip to content

Commit 2a01702

Browse files
committed
fix: revert test
Signed-off-by: Junjie Gao <[email protected]>
1 parent 41e4004 commit 2a01702

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

notation_test.go

-31
Original file line numberDiff line numberDiff line change
@@ -188,37 +188,6 @@ func TestSignWithInvalidUserMetadata(t *testing.T) {
188188
}
189189
}
190190

191-
func TestSignOptsMissingSignatureMediaType(t *testing.T) {
192-
repo := mock.NewRepository()
193-
opts := SignOptions{
194-
SignerSignOptions: SignerSignOptions{
195-
SignatureMediaType: "",
196-
},
197-
ArtifactReference: mock.SampleArtifactUri,
198-
}
199-
200-
_, err := Sign(context.Background(), &dummySigner{}, repo, opts)
201-
if err == nil {
202-
t.Fatalf("expected error but not found")
203-
}
204-
}
205-
206-
func TestSignOptsUnknownMediaType(t *testing.T) {
207-
repo := mock.NewRepository()
208-
opts := SignOptions{
209-
SignerSignOptions: SignerSignOptions{
210-
SignatureMediaType: "unknown",
211-
},
212-
ArtifactReference: mock.SampleArtifactUri,
213-
}
214-
215-
_, err := Sign(context.Background(), &dummySigner{}, repo, opts)
216-
if err == nil {
217-
t.Fatalf("expected error but not found")
218-
}
219-
220-
}
221-
222191
func TestRegistryResolveError(t *testing.T) {
223192
policyDocument := dummyPolicyDocument()
224193
repo := mock.NewRepository()

0 commit comments

Comments
 (0)