forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task 574 - Treat DateTime type as String (for now) (Azure#27)
* Task 574 - Treat DateTime type as String (for now)
- Loading branch information
Showing
4 changed files
with
111 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
search/data-plane/data/src/test/resources/DateTimeDataTypeTestIndexData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "datetime-data-type-test-index", | ||
"fields": [ | ||
{ | ||
"name": "Key", | ||
"type": "Edm.String", | ||
"key": true, | ||
"retrievable": true | ||
}, | ||
{ | ||
"name": "Date", | ||
"type": "Edm.DateTimeOffset", | ||
"retrievable": true | ||
} | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
...ch/data-plane/data/src/test/resources/session-records/dateTimeTypeIsReturnedAsString.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://azs-sdked49427225e2.search.windows.net/indexes('datetime-data-type-test-index')/docs/search.index?api-version=2019-05-06", | ||
"Headers" : { | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"Pragma" : "no-cache", | ||
"retry-after" : "0", | ||
"request-id" : "1ba557b9-403a-4e82-9ac5-f3ce79180ffc", | ||
"StatusCode" : "200", | ||
"Date" : "Tue, 13 Aug 2019 11:46:38 GMT", | ||
"Strict-Transport-Security" : "max-age=15724800; includeSubDomains", | ||
"Cache-Control" : "no-cache", | ||
"elapsed-time" : "118", | ||
"OData-Version" : "4.0", | ||
"Expires" : "-1", | ||
"Content-Length" : "250", | ||
"Body" : "{\"@odata.context\":\"https://azs-sdked49427225e2.search.windows.net/indexes('datetime-data-type-test-index')/$metadata#Collection(Microsoft.Azure.Search.V2019_05_06.IndexResult)\",\"value\":[{\"key\":\"4\",\"status\":true,\"errorMessage\":null,\"statusCode\":201}]}", | ||
"Preference-Applied" : "odata.include-annotations=\"*\"", | ||
"Content-Type" : "application/json; odata.metadata=minimal" | ||
} | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://azs-sdked49427225e2.search.windows.net/indexes('datetime-data-type-test-index')/docs('4')?api-version=2019-05-06", | ||
"Headers" : { }, | ||
"Response" : { | ||
"Pragma" : "no-cache", | ||
"retry-after" : "0", | ||
"request-id" : "e3312fa4-71b9-4559-9954-0b88f9b146b0", | ||
"StatusCode" : "200", | ||
"Date" : "Tue, 13 Aug 2019 11:46:38 GMT", | ||
"Strict-Transport-Security" : "max-age=15724800; includeSubDomains", | ||
"Cache-Control" : "no-cache", | ||
"elapsed-time" : "10", | ||
"OData-Version" : "4.0", | ||
"Expires" : "-1", | ||
"Content-Length" : "174", | ||
"Body" : "{\"@odata.context\":\"https://azs-sdked49427225e2.search.windows.net/indexes('datetime-data-type-test-index')/$metadata#docs(*)/$entity\",\"Key\":\"4\",\"Date\":\"2019-08-13T14:30:00Z\"}", | ||
"Preference-Applied" : "odata.include-annotations=\"*\"", | ||
"Content-Type" : "application/json; odata.metadata=minimal" | ||
} | ||
} ], | ||
"variables" : [ ] | ||
} |
24 changes: 12 additions & 12 deletions
24
...urces/session-records/dynamicallyTypedPrimitiveCollectionsDoNotAllRoundtripCorrectly.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters