mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
22 lines
387 B
Go
22 lines
387 B
Go
package e2e
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
|
|
. "github.com/argoproj/argo-cd/v2/test/e2e/fixture"
|
|
)
|
|
|
|
func TestUserInfo(t *testing.T) {
|
|
EnsureCleanState(t)
|
|
|
|
output, err := RunCli("account", "get-user-info")
|
|
|
|
require.NoError(t, err)
|
|
assert.Equal(t, `Logged In: true
|
|
Username: admin
|
|
Issuer: argocd
|
|
Groups: `, output)
|
|
}
|