Re-enable scheduled app unit test (TestSyncScheduledSparkApplication_Forbid) (#865)

* Fix scheduled app test

* fix typo

Co-authored-by: Thi Nguyen <duongnt@users.noreply.github.com>
Co-authored-by: Thi Nguyen <thi.nguyen@cloudkitchens.com>
This commit is contained in:
Thi Nguyen 2020-04-09 23:07:17 +07:00 committed by GitHub
parent e1d70afe9c
commit 2e4559eac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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",