We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d36dd commit a433259Copy full SHA for a433259
pkg/apis/deployment/v1alpha/license_spec_test.go
@@ -0,0 +1,15 @@
1
+package v1alpha
2
+
3
+import (
4
+ "testing"
5
6
+ "github.com/arangodb/kube-arangodb/pkg/util"
7
+ "github.com/stretchr/testify/assert"
8
+)
9
10
+func TestLicenseSpecValidation(t *testing.T) {
11
+ assert.Nil(t, LicenseSpec{SecretName: nil}.Validate())
12
+ assert.Nil(t, LicenseSpec{SecretName: util.NewString("some-name")}.Validate())
13
14
+ assert.Error(t, LicenseSpec{SecretName: util.NewString("@@")}.Validate())
15
+}
0 commit comments