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

     1  package e2e
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/argoproj/gitops-engine/pkg/health"
     7  	. "github.com/argoproj/gitops-engine/pkg/sync/common"
     8  
     9  	. "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1"
    10  	. "github.com/argoproj/argo-cd/test/e2e/fixture/app"
    11  )
    12  
    13  // ensure that cluster scoped objects, like a cluster role, as a hok, can be successfully deployed
    14  func TestClusterRoleBinding(t *testing.T) {
    15  	Given(t).
    16  		Path("cluster-role").
    17  		When().
    18  		Create().
    19  		Sync().
    20  		Then().
    21  		Expect(OperationPhaseIs(OperationSucceeded)).
    22  		Expect(HealthIs(health.HealthStatusHealthy)).
    23  		Expect(SyncStatusIs(SyncStatusCodeSynced))
    24  }