Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Sep 20, 2023
1 parent b32a300 commit dcb42ab
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions controllers/nodes/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ package nodes
import (
"crypto/sha256"
"fmt"
"math/rand"
"testing"
"time"

"github.com/stretchr/testify/assert"
"go.mondoo.com/mondoo-operator/api/v1alpha2"
Expand All @@ -31,7 +29,6 @@ const (
)

func TestCronJobName(t *testing.T) {
rand.Seed(time.Now().UnixNano())
prefix := "mondoo-client"
tests := []struct {
name string
Expand Down Expand Up @@ -66,14 +63,12 @@ func TestCronJobName(t *testing.T) {
}

func TestGarbageCollectCronJobName(t *testing.T) {
rand.Seed(time.Now().UnixNano())
prefix := "mondoo-client"

assert.Equal(t, fmt.Sprintf("%s%s", prefix, GarbageCollectCronJobNameBase), GarbageCollectCronJobName(prefix))
}

func TestConfigMapName(t *testing.T) {
rand.Seed(time.Now().UnixNano())
prefix := "mondoo-client"
tests := []struct {
name string
Expand Down Expand Up @@ -108,7 +103,6 @@ func TestConfigMapName(t *testing.T) {
}

func TestResources(t *testing.T) {
rand.Seed(time.Now().UnixNano())
tests := []struct {
name string
mondooauditconfig func() *v1alpha2.MondooAuditConfig
Expand Down Expand Up @@ -166,8 +160,6 @@ func TestResources(t *testing.T) {
}

func TestCronJob_PrivilegedOpenshift(t *testing.T) {
rand.Seed(time.Now().UnixNano())

testNode := &corev1.Node{
ObjectMeta: metav1.ObjectMeta{
Name: "test-node-name",
Expand All @@ -180,8 +172,6 @@ func TestCronJob_PrivilegedOpenshift(t *testing.T) {
}

func TestCronJob_Privileged(t *testing.T) {
rand.Seed(time.Now().UnixNano())

testNode := &corev1.Node{
ObjectMeta: metav1.ObjectMeta{
Name: "test-node-name",
Expand Down

0 comments on commit dcb42ab

Please sign in to comment.