github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/verify-infra/restapi/keycloak_url_test.go (about)

     1  // Copyright (c) 2021, 2022, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package restapi_test
     5  
     6  import (
     7  	"fmt"
     8  	"time"
     9  
    10  	. "github.com/onsi/ginkgo/v2"
    11  	"github.com/verrazzano/verrazzano/tests/e2e/pkg"
    12  	"github.com/verrazzano/verrazzano/tests/e2e/pkg/test/framework/metrics"
    13  )
    14  
    15  var _ = t.Describe("keycloak", Label("f:infra-lcm",
    16  	"f:ui.console"), func() {
    17  
    18  	t.Context("test to", func() {
    19  		t.It("Verify Keycloak access", func() {
    20  			start := time.Now()
    21  			err := pkg.VerifyKeycloakAccess(t.Logs)
    22  			metrics.Emit(t.Metrics.With("verify_keycloak_access_response_time", time.Since(start).Milliseconds()))
    23  			if err != nil {
    24  				t.Logs.Error(fmt.Sprintf("Error verifying keycloak access: %v", err))
    25  				t.Fail(err.Error())
    26  			}
    27  		})
    28  	})
    29  })
    30  
    31  var _ = t.AfterEach(func() {})