Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Print status.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheDeveloper committed Nov 25, 2019
1 parent 8104810 commit c2aaeb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions controllers/secretscope_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package controllers

import (
"context"
"fmt"
"time"

databricksv1alpha1 "github.com/microsoft/azure-databricks-operator/api/v1alpha1"
Expand Down Expand Up @@ -107,6 +108,11 @@ var _ = Describe("SecretScope Controller", func() {
time.Sleep(time.Second * 5)

fetched := &databricksv1alpha1.SecretScope{}

k8sClient.Get(context.Background(), key, fetched)

fmt.Println(fetched.Status)

Eventually(func() bool {
k8sClient.Get(context.Background(), key, fetched)
return fetched.IsSubmitted()
Expand Down Expand Up @@ -211,6 +217,11 @@ var _ = Describe("SecretScope Controller", func() {
time.Sleep(time.Second * 5)

fetched := &databricksv1alpha1.SecretScope{}

k8sClient.Get(context.Background(), key, fetched)

fmt.Println(fetched.Status)

Eventually(func() bool {
k8sClient.Get(context.Background(), key, fetched)
return fetched.IsSubmitted()
Expand Down

0 comments on commit c2aaeb1

Please sign in to comment.