Skip to content

Commit

Permalink
make getAndPrint exportable
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoaresd committed Nov 29, 2024
1 parent f22abed commit 95ced71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsupport/wait/awaitility.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func (a *Awaitility) WaitForDeploymentToGetReady(t *testing.T, name string, repl
return true, nil
})
if err != nil {
a.getAndPrint(t, "Deployment", a.Namespace, name, &appsv1.Deployment{})
a.GetAndPrint(t, "Deployment", a.Namespace, name, &appsv1.Deployment{})
}
require.NoError(t, err)
return deployment
Expand Down Expand Up @@ -654,7 +654,7 @@ func (a *Awaitility) listAndReturnContent(resourceKind, namespace string, list c
return fmt.Sprintf("\n%s present in the namespace:\n%s\n", resourceKind, string(content))
}

func (a *Awaitility) getAndPrint(t *testing.T, resourceKind, namespace, name string, obj client.Object, additionalOptions ...client.GetOption) {
func (a *Awaitility) GetAndPrint(t *testing.T, resourceKind, namespace, name string, obj client.Object, additionalOptions ...client.GetOption) {
t.Logf(a.getAndReturnContent(resourceKind, namespace, name, obj, additionalOptions...))
}

Expand Down

0 comments on commit 95ced71

Please sign in to comment.