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:
parent
e1d70afe9c
commit
2e4559eac0
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue