@@ -43,7 +43,7 @@ class NamedObjectsJobSpec extends JobSpecBase(JobManagerSpec.getNewSystem) {
43
43
names2 should not contain(" df1" )
44
44
45
45
// clean-up
46
- manager ! JobManagerActor .StartJob (" demo" , jobName, emptyConfig.withValue(NamedObjectsTestJobConfig .DELETE , ConfigValueFactory .fromIterable(names.toList ))
46
+ manager ! JobManagerActor .StartJob (" demo" , jobName, emptyConfig.withValue(NamedObjectsTestJobConfig .DELETE , ConfigValueFactory .fromIterable(List ( " rdd1 " ) ))
47
47
.withValue(NamedObjectsTestJobConfig .CREATE_RDD , ConfigValueFactory .fromAnyRef(false )),
48
48
errorEvents ++ syncEvents)
49
49
val JobResult (_, names3 : Array [String ]) = expectMsgClass(classOf [JobResult ])
@@ -74,8 +74,8 @@ class NamedObjectsJobSpec extends JobSpecBase(JobManagerSpec.getNewSystem) {
74
74
names2 should equal(names)
75
75
76
76
// clean-up
77
- manager ! JobManagerActor .StartJob (" demo" , jobName, emptyConfig.withValue(NamedObjectsTestJobConfig .DELETE , ConfigValueFactory .fromIterable(names.toList))
78
- .withValue( NamedObjectsTestJobConfig . CREATE_RDD , ConfigValueFactory .fromAnyRef( false )),
77
+ manager ! JobManagerActor .StartJob (" demo" , jobName, emptyConfig.withValue(NamedObjectsTestJobConfig .DELETE ,
78
+ ConfigValueFactory .fromIterable( List ( " df1 " ) )),
79
79
errorEvents ++ syncEvents)
80
80
val JobResult (_, names3 : Array [String ]) = expectMsgClass(classOf [JobResult ])
81
81
}
@@ -91,14 +91,22 @@ class NamedObjectsJobSpec extends JobSpecBase(JobManagerSpec.getNewSystem) {
91
91
.withValue(NamedObjectsTestJobConfig .CREATE_RDD , ConfigValueFactory .fromAnyRef(true )),
92
92
errorEvents ++ syncEvents)
93
93
val JobResult (_, names : Array [String ]) = expectMsgClass(classOf [JobResult ])
94
- names should equal(Array (" rdd1" , " df1" ))
94
+
95
+ names should contain(" rdd1" )
96
+ names should contain(" df1" )
95
97
96
98
manager ! JobManagerActor .StartJob (" demo" , jobName, emptyConfig.withValue(NamedObjectsTestJobConfig .CREATE_DF , ConfigValueFactory .fromAnyRef(false ))
97
99
.withValue(NamedObjectsTestJobConfig .CREATE_RDD , ConfigValueFactory .fromAnyRef(false )),
98
100
errorEvents ++ syncEvents)
99
101
val JobResult (_, names2 : Array [String ]) = expectMsgClass(classOf [JobResult ])
100
102
101
103
names2 should equal(names)
104
+
105
+ // clean-up
106
+ manager ! JobManagerActor .StartJob (" demo" , jobName, emptyConfig.withValue(NamedObjectsTestJobConfig .DELETE ,
107
+ ConfigValueFactory .fromIterable(List (" rdd1" , " df1" ))),
108
+ errorEvents ++ syncEvents)
109
+ val JobResult (_, names3 : Array [String ]) = expectMsgClass(classOf [JobResult ])
102
110
}
103
111
}
104
112
0 commit comments