github.com/argoproj/argo-cd@v1.8.7/test/e2e/user_info_test.go (about)

     1  package e2e
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  
     8  	. "github.com/argoproj/argo-cd/test/e2e/fixture"
     9  )
    10  
    11  func TestUserInfo(t *testing.T) {
    12  	EnsureCleanState(t)
    13  
    14  	output, err := RunCli("account", "get-user-info")
    15  
    16  	assert.NoError(t, err)
    17  	assert.Equal(t, `Logged In: true
    18  Username: admin
    19  Issuer: argocd
    20  Groups: `, output)
    21  }