OData / ValidationTool

Enable OData service authors ensure that their service interoperates well with any OData client.
Other
19 stars 16 forks source link

Fix bugs 8047, 8048, 8049, 8050 #10

Closed v-fenguo closed 9 years ago

v-fenguo commented 9 years ago

Mainly complement the "update complex property" function testing, since it is found out that the demo service can pass this test.

v-fenguo commented 9 years ago

Fix Bug 8047: Filter out the situation when "nullable = false" for ServiceImpl_DeleteProperty. Fix Bug 8048: ServiceImpl_DeleteProperty, ServiceImpl_EditStreamPropertyValue, ServiceImpl_DeleteStreamPropertyValue, these 3 rules add restoring service before return. Fix Bug 8049, 8050: ServiceImpl_UpdateComplexProperty and ServiceImpl_UpdatePrimitiveProperty Before doing update primitive or complex property, check whether the property has value, if not has value, create the value in testing entity creation before updating the property. Fix Bug 8051: For ServiceImpl_RemoveReferenceToEntity, change precondition of creating reference to remove from 1 deep insert to 2 steps: 1.create the main entity 2.update to add the reference. Fix Bug 8052: ServiceImpl_CreateEntityDeepInsert. Relax the restriction to check only collection valued navigation property to check both collection valued and single valued. Fix Bug 8057: ServiceImpl_DeleteProperty. Before doing delete a property, check whether the property has value, if not has value, create the value in testing entity creation before deleting the property. Fix Bug 8058: For ServiceImpl_CreateEntityDeepInsert, add the checking for the deep inserted entity and the main entity are related.