add test to ensure OCIGetter registryClient is set

Signed-off-by: Alex Sears <me@alexsears.com>
pull/9409/head
Alex Sears 3 years ago
parent 2d16a8135b
commit 1c377f8c62
No known key found for this signature in database
GPG Key ID: C5830CA0D9202CBF

@ -0,0 +1,30 @@
/*
Copyright The Helm 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 getter
import (
"testing"
)
func TestNewOCIGetter(t *testing.T) {
testfn := func(ops *options) {
if ops.registryClient == nil {
t.Fatalf("the OCIGetter's registryClient should not be null")
}
}
NewOCIGetter(testfn)
}
Loading…
Cancel
Save