@@ -227,13 +227,13 @@ end
227
227
# NOTE: CloudGraphDFG isnt supporting this yet.
228
228
if ! (typeof (dfg) <: CloudGraphsDFG )
229
229
oid = zeros (UInt8,12 ); oid[12 ] = 0x01
230
- de1 = MongodbDataEntry (:key1 , NTuple {12,UInt8} (oid))
230
+ de1 = MongodbDataEntry (:key1 , uuid4 (), NTuple {12,UInt8} (oid), " " , now ( localzone () ))
231
231
232
232
oid = zeros (UInt8,12 ); oid[12 ] = 0x02
233
- de2 = MongodbDataEntry (:key2 , NTuple {12,UInt8} (oid))
233
+ de2 = MongodbDataEntry (:key2 , uuid4 (), NTuple {12,UInt8} (oid), " " , now ( localzone () ))
234
234
235
235
oid = zeros (UInt8,12 ); oid[12 ] = 0x03
236
- de2_update = MongodbDataEntry (:key2 , NTuple {12,UInt8} (oid))
236
+ de2_update = MongodbDataEntry (:key2 , uuid4 (), NTuple {12,UInt8} (oid), " " , now ( localzone () ))
237
237
238
238
# add
239
239
v1 = getVariable (dfg, :a )
@@ -256,17 +256,17 @@ end
256
256
# list
257
257
entries = getDataEntries (dfg, :a )
258
258
@test length (entries) == 2
259
- @test issetequal (map (e-> e. key , entries), [:key1 , :key2 ])
259
+ @test issetequal (map (e-> e. label , entries), [:key1 , :key2 ])
260
260
@test length (getDataEntries (dfg, :b )) == 1
261
261
262
262
@test issetequal (listDataEntries (dfg, :a ), [:key1 , :key2 ])
263
263
@test listDataEntries (dfg, :b ) == Symbol[:key2 ]
264
264
265
265
# delete
266
- @test deleteDataEntry! (v1, :key1 ) == v1
266
+ @test deleteDataEntry! (v1, :key1 ) == de1
267
267
@test listDataEntries (v1) == Symbol[:key2 ]
268
268
# delete from ddfg
269
- @test deleteDataEntry! (dfg, :a , :key2 ) == v1
269
+ @test deleteDataEntry! (dfg, :a , :key2 ) == de2_update
270
270
@test listDataEntries (v1) == Symbol[]
271
271
end
272
272
end
0 commit comments