Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev committed Nov 18, 2024
1 parent 264154e commit 0abb2dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/unit/service_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
)

func TestControllerServiceAccountCreateTrue(t *testing.T) {
func TestServiceAccountCreateTrue(t *testing.T) {
options := &helm.Options{
SetValues: map[string]string{
"serviceAccount.create": "true",
Expand All @@ -26,7 +26,7 @@ func TestControllerServiceAccountCreateTrue(t *testing.T) {
assert.Equal(t, defaultNamespace, sa.Namespace)
}

func TestControllerServiceAccountCreateFalse(t *testing.T) {
func TestServiceAccountCreateFalse(t *testing.T) {
options := &helm.Options{
SetValues: map[string]string{
"serviceAccount.create": "false",
Expand All @@ -39,7 +39,7 @@ func TestControllerServiceAccountCreateFalse(t *testing.T) {
assert.Contains(t, err.Error(), fmt.Sprintf("could not find template %s in chart", serviceAccountTemplate))
}

func TestControllerServiceAccountAnnotations(t *testing.T) {
func TestServiceAccountAnnotations(t *testing.T) {
expectedAnnotations := map[string]string{
"app.kubernetes.io/name": "hcp-terraform-operator",
}
Expand All @@ -60,7 +60,7 @@ func TestControllerServiceAccountAnnotations(t *testing.T) {
assert.Equal(t, defaultNamespace, sa.Namespace)
}

func TestControllerServiceAccountNamespace(t *testing.T) {
func TestServiceAccountNamespace(t *testing.T) {
ns := "this"
options := &helm.Options{
SetValues: map[string]string{
Expand All @@ -79,7 +79,7 @@ func TestControllerServiceAccountNamespace(t *testing.T) {
assert.Equal(t, ns, sa.Namespace)
}

func TestControllerServiceAccountName(t *testing.T) {
func TestServiceAccountName(t *testing.T) {
name := "this"
options := &helm.Options{
SetValues: map[string]string{
Expand Down

0 comments on commit 0abb2dd

Please sign in to comment.