Skip to content

Commit

Permalink
chore: Add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinlim committed Feb 17, 2024
1 parent 9cd98a0 commit b2f7800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cli/cmd/cmd_list_jobconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,17 @@ func TestListJobConfigCommand(t *testing.T) {
// Expect that initial output contains the specified job config.
rc.Console.ExpectString(periodicJobConfig.Name)
rc.Console.ExpectString(string(v1alpha1.JobConfigReadyEnabled))
t.Logf("saw job config: %s/%s", periodicJobConfig.Namespace, periodicJobConfig.Name)

// Create a new JobConfig.
_, err := rc.CtrlContext.Clientsets().Furiko().ExecutionV1alpha1().JobConfigs(adhocJobConfig.Namespace).Create(rc.Context, adhocJobConfig, metav1.CreateOptions{})
createdJobConfig, err := rc.CtrlContext.Clientsets().Furiko().ExecutionV1alpha1().JobConfigs(adhocJobConfig.Namespace).Create(rc.Context, adhocJobConfig, metav1.CreateOptions{})
assert.NoError(t, err)
t.Logf("created job config: %s/%s", createdJobConfig.Namespace, createdJobConfig.Name)

// Wait for the console to print updates.
rc.Console.ExpectString(adhocJobConfig.Name)
rc.Console.ExpectString(string(v1alpha1.JobConfigReady))
t.Logf("created job config: %s/%s", adhocJobConfig.Namespace, adhocJobConfig.Name)

// Cancel watch.
rc.Cancel()
Expand Down

0 comments on commit b2f7800

Please sign in to comment.