Files
capsule/pkg/utils/user_group_test.go
Dario Tranchitella 0830b3629e chore(header): moving to new neutral organization
Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
2023-10-16 21:29:23 +02:00

27 lines
539 B
Go

// Copyright 2020-2023 Project Capsule Authors.
// SPDX-License-Identifier: Apache-2.0
package utils
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestIsInCapsuleGroups(t *testing.T) {
groups := []string{
"DPS-QQ-DeparEE-Upload_RW",
"vsphere - glonqqqq-devopsq",
"OSAAA-WOO",
"crownuser-qq4",
"kubernetes-abilitytologin",
"waaazzz-prod-user",
"Zaxxxq_Global_Team_Leader_Automation",
}
capsuleGroup := "kubernetes-abilitytologin"
assert.True(t, NewUserGroupList(groups).Find(capsuleGroup), nil)
}