Skip to content

Commit

Permalink
Re-enable scheduled app unit test (TestSyncScheduledSparkApplication_…
Browse files Browse the repository at this point in the history
…Forbid) (kubeflow#865)

* Fix scheduled app test

* fix typo

Co-authored-by: Thi Nguyen <[email protected]>
Co-authored-by: Thi Nguyen <[email protected]>
  • Loading branch information
3 people authored Apr 9, 2020
1 parent e1d70af commit 2e4559e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions pkg/controller/scheduledsparkapplication/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func (c *Controller) createSparkApplication(
Name: scheduledApp.Name,
UID: scheduledApp.UID,
})
app.ObjectMeta.Namespace = scheduledApp.Namespace
app.ObjectMeta.Labels = make(map[string]string)
for key, value := range scheduledApp.Labels {
app.ObjectMeta.Labels[key] = value
Expand Down
3 changes: 0 additions & 3 deletions pkg/controller/scheduledsparkapplication/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ func TestSyncScheduledSparkApplication_Allow(t *testing.T) {
}

func TestSyncScheduledSparkApplication_Forbid(t *testing.T) {
// TODO: figure out why the test fails and remove this.
t.Skip()

app := &v1beta2.ScheduledSparkApplication{
ObjectMeta: metav1.ObjectMeta{
Namespace: "default",
Expand Down

0 comments on commit 2e4559e

Please sign in to comment.