Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvia Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Apr 19, 2023
1 parent 221078c commit da803ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 1 addition & 4 deletions dynamic_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ func Test_DynamicStore_fileStore_AllowPlainTextPut(t *testing.T) {
}

// test AllowPlainTextPut = true
ds, err = NewStore(configPath, StoreOptions{AllowPlaintextPut: true})
if err != nil {
t.Fatal("NewStore() error =", err)
}
ds.AllowPlaintextPut = true
if err := ds.Put(ctx, serverAddr, cred); err != nil {
t.Error("DynamicStore.Put() error =", err)
}
Expand Down
15 changes: 15 additions & 0 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
Copyright The ORAS Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package config

import "testing"
Expand Down

0 comments on commit da803ed

Please sign in to comment.