ruby_odata 0.1.6 → 0.2.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -0
- data/Guardfile +1 -1
- data/features/basic_auth.feature +13 -13
- data/features/cassettes/basic_auth_protected_resource.yml +22 -20
- data/features/cassettes/batch_request_additions.yml +26 -26
- data/features/cassettes/batch_request_deletes.yml +27 -27
- data/features/cassettes/batch_request_updates.yml +26 -26
- data/features/cassettes/clean_database_for_testing.yml +10 -10
- data/features/cassettes/cucumber_tags/basic_auth.yml +54 -163
- data/features/cassettes/cucumber_tags/batch_request.yml +229 -1118
- data/features/cassettes/cucumber_tags/complex_types.yml +81 -191
- data/features/cassettes/cucumber_tags/error_handling.yml +45 -33
- data/features/cassettes/cucumber_tags/query_builder.yml +555 -1248
- data/features/cassettes/cucumber_tags/service_manage.yml +216 -591
- data/features/cassettes/cucumber_tags/service_methods.yml +137 -412
- data/features/cassettes/cucumber_tags/ssl.yml +121 -117
- data/features/cassettes/cucumber_tags/type_conversion.yml +104 -170
- data/features/cassettes/service_manage_additions.yml +26 -28
- data/features/cassettes/service_manage_deletions.yml +21 -21
- data/features/cassettes/service_manage_deletions_2.yml +21 -21
- data/features/cassettes/unsecured_metadata.yml +14 -14
- data/features/service.feature +37 -37
- data/features/service_methods.feature +38 -38
- data/features/step_definitions/pickle_steps.rb +5 -5
- data/features/step_definitions/service_steps.rb +26 -26
- data/features/support/hooks.rb +3 -2
- data/features/support/vcr.rb +13 -13
- data/lib/ruby_odata.rb +4 -1
- data/lib/ruby_odata/association.rb +15 -8
- data/lib/ruby_odata/class_builder.rb +5 -1
- data/lib/ruby_odata/query_builder.rb +171 -173
- data/lib/ruby_odata/resource.rb +153 -0
- data/lib/ruby_odata/service.rb +30 -30
- data/lib/ruby_odata/version.rb +1 -1
- data/ruby_odata.gemspec +48 -43
- data/spec/association_spec.rb +15 -11
- data/spec/fixtures/decimal/metadata.xml +1 -0
- data/spec/fixtures/v4/edmx_metadata.xml +145 -0
- data/spec/fixtures/v4/result_categories.xml +0 -0
- data/spec/revised_service_spec.rb +16 -11
- data/spec/service_spec.rb +149 -114
- data/spec/service_v4_spec.rb +102 -0
- data/spec/spec_helper.rb +6 -1
- metadata +109 -32
- data/features/cassettes/cucumber_tags/service.yml +0 -234
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e504ceeec705d470f94f71bde3727f0e409b85
|
4
|
+
data.tar.gz: b6593c98631bab056b53b68245e142f315e36a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0f6b958d1017d7c7d06496f2b1727cc4c71326a5e0c440ae558cd8aef4f669db32c30f318c72db5d4c1989aca392d6e789794ae90e6ffcd9e774808d78cb0a
|
7
|
+
data.tar.gz: 69f20f9baee5e21c8f918f6a220c18844741e317554f0f9a830ad98ba6a76fbf31ce13f15599afda8bb348c4f51bab57b41eb90598fba8b283bcdf2a77f8e70f
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -155,3 +155,8 @@
|
|
155
155
|
|
156
156
|
* Other
|
157
157
|
* Changed license to MIT and added it to the gemspec
|
158
|
+
|
159
|
+
## 0.2.0.beta1
|
160
|
+
* New Features
|
161
|
+
* Support for Rails 4 (Thanks [@denstepa](https://github.com/denstepa))
|
162
|
+
* Move to Faraday instead of RestClient (Thanks [@zzk](https://github.com/zzk)) for more options like NTLM.
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# A sample Guardfile
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
|
4
|
-
guard 'rspec', :
|
4
|
+
guard 'rspec', cmd: "bundle exec rspec" do
|
5
5
|
watch(%r{^spec/.+_spec\.rb$})
|
6
6
|
watch(%r{^lib/ruby_odata/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
7
7
|
watch('spec/spec_helper.rb') { "spec" }
|
data/features/basic_auth.feature
CHANGED
@@ -5,19 +5,19 @@ Background:
|
|
5
5
|
Given a HTTP BasicAuth ODataService exists using username "admin" and password "passwd"
|
6
6
|
And blueprints exist for the service
|
7
7
|
|
8
|
-
Scenario: Service should respond to valid collections
|
9
|
-
|
8
|
+
Scenario: Service should respond to valid collections
|
9
|
+
Then I should be able to call "Products" on the service
|
10
10
|
|
11
|
-
Scenario: Entity should fill values on protected resource
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
Scenario: Entity should fill values on protected resource
|
12
|
+
Given I call "AddToCategories" on the service with a new "Category" object with Name: "Auth Test Category"
|
13
|
+
And I save changes
|
14
|
+
And I call "Categories" on the service with args: "1"
|
15
|
+
When I run the query within a cassette named "basic_auth_protected_resource"
|
16
|
+
Then the method "Id" on the first result should equal: "1"
|
17
|
+
And the method "Name" on the first result should equal: "Auth Test Category"
|
18
18
|
|
19
|
-
Scenario: Should get 401 if invalid credentials provided to protected URL
|
20
|
-
|
19
|
+
Scenario: Should get 401 if invalid credentials provided to protected URL
|
20
|
+
Given a HTTP BasicAuth ODataService exists using username "admin" and password "bad_pwd" it should throw an exception with message "the server responded with status 401"
|
21
21
|
|
22
|
-
Scenario: Should get 401 if no credentials provided to protected URL
|
23
|
-
|
22
|
+
Scenario: Should get 401 if no credentials provided to protected URL
|
23
|
+
Given a HTTP BasicAuth ODataService exists it should throw an exception with message "the server responded with status 401"
|
@@ -2,32 +2,34 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://10.10.0.17:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*; q=0.5, application/xml'
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
10
|
User-Agent:
|
15
11
|
- Ruby
|
12
|
+
Accept:
|
13
|
+
- "*/*; q=0.5, application/xml"
|
14
|
+
Authorization:
|
15
|
+
- Basic YWRtaW46cGFzc3dk
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip,deflate
|
16
18
|
response:
|
17
19
|
status:
|
18
20
|
code: 200
|
19
|
-
message:
|
21
|
+
message: ''
|
20
22
|
headers:
|
21
23
|
Cache-Control:
|
22
|
-
-
|
24
|
+
- private
|
23
25
|
Content-Length:
|
24
|
-
- '
|
26
|
+
- '1274'
|
25
27
|
Content-Type:
|
26
28
|
- application/atom+xml;type=entry;charset=utf-8
|
27
29
|
Server:
|
28
|
-
- Microsoft-IIS/
|
30
|
+
- Microsoft-IIS/8.0
|
29
31
|
Set-Cookie:
|
30
|
-
- ASP.NET_SessionId=
|
32
|
+
- ASP.NET_SessionId=3jiy4xpsmuspq01b2k3jdbi5; path=/; HttpOnly
|
31
33
|
X-Content-Type-Options:
|
32
34
|
- nosniff
|
33
35
|
Dataserviceversion:
|
@@ -37,21 +39,21 @@ http_interactions:
|
|
37
39
|
X-Powered-By:
|
38
40
|
- ASP.NET
|
39
41
|
Date:
|
40
|
-
-
|
42
|
+
- Sun, 26 Apr 2015 16:29:23 GMT
|
41
43
|
body:
|
42
|
-
encoding:
|
43
|
-
string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://
|
44
|
+
encoding: UTF-8
|
45
|
+
string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/BasicAuth/RubyOData.svc/"
|
44
46
|
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
45
47
|
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
46
|
-
xmlns:gml="http://www.opengis.net/gml"><id>http://
|
48
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)</id><category
|
47
49
|
term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
48
50
|
/><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
|
49
51
|
type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
|
50
|
-
/><title /><updated>
|
52
|
+
/><title /><updated>2015-04-26T16:29:24Z</updated><author><name /></author><content
|
51
53
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Auth
|
52
54
|
Test Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
|
53
|
-
m:type="Edm.DateTime">
|
54
|
-
m:type="Edm.DateTime">
|
55
|
-
http_version:
|
56
|
-
recorded_at:
|
57
|
-
recorded_with: VCR 2.
|
55
|
+
m:type="Edm.DateTime">2015-04-26T16:29:24.16</d:CreateDate><d:ModifiedDate
|
56
|
+
m:type="Edm.DateTime">2015-04-26T16:29:24.16</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
|
57
|
+
http_version:
|
58
|
+
recorded_at: Sun, 26 Apr 2015 16:29:24 GMT
|
59
|
+
recorded_with: VCR 2.5.0
|
@@ -2,32 +2,32 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products?$orderby=Name
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*; q=0.5, application/xml'
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
10
|
User-Agent:
|
15
11
|
- Ruby
|
12
|
+
Accept:
|
13
|
+
- "*/*; q=0.5, application/xml"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip,deflate
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
|
-
message:
|
19
|
+
message: ''
|
20
20
|
headers:
|
21
21
|
Cache-Control:
|
22
|
-
-
|
22
|
+
- private
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '2714'
|
25
25
|
Content-Type:
|
26
26
|
- application/atom+xml;type=feed;charset=utf-8
|
27
27
|
Server:
|
28
|
-
- Microsoft-IIS/
|
28
|
+
- Microsoft-IIS/8.0
|
29
29
|
Set-Cookie:
|
30
|
-
- ASP.NET_SessionId=
|
30
|
+
- ASP.NET_SessionId=fdxheq5p1ihklukb1qr503qn; path=/; HttpOnly
|
31
31
|
X-Content-Type-Options:
|
32
32
|
- nosniff
|
33
33
|
Dataserviceversion:
|
@@ -37,33 +37,33 @@ http_interactions:
|
|
37
37
|
X-Powered-By:
|
38
38
|
- ASP.NET
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Sun, 26 Apr 2015 16:29:24 GMT
|
41
41
|
body:
|
42
|
-
encoding:
|
43
|
-
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://
|
42
|
+
encoding: UTF-8
|
43
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
|
44
44
|
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
45
45
|
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
46
|
-
xmlns:gml="http://www.opengis.net/gml"><id>http://
|
47
|
-
type="text">Products</title><updated>
|
48
|
-
title="Products" href="Products" /><entry><id>http://
|
46
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
|
47
|
+
type="text">Products</title><updated>2015-04-26T16:29:25Z</updated><link rel="self"
|
48
|
+
title="Products" href="Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
49
49
|
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
50
50
|
/><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
51
51
|
type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
|
52
|
-
/><title /><updated>
|
52
|
+
/><title /><updated>2015-04-26T16:29:25Z</updated><author><name /></author><content
|
53
53
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
|
54
|
-
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">
|
54
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
|
55
55
|
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
|
56
|
-
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">
|
57
|
-
m:type="Edm.DateTime">
|
56
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:CreateDate><d:ModifiedDate
|
57
|
+
m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
58
58
|
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
59
59
|
/><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
60
60
|
type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
|
61
|
-
/><title /><updated>
|
61
|
+
/><title /><updated>2015-04-26T16:29:25Z</updated><author><name /></author><content
|
62
62
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
|
63
63
|
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
|
64
64
|
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
|
65
|
-
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">
|
66
|
-
m:type="Edm.DateTime">
|
67
|
-
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
65
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:CreateDate><d:ModifiedDate
|
66
|
+
m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
67
|
+
http_version:
|
68
|
+
recorded_at: Sun, 26 Apr 2015 16:29:25 GMT
|
69
|
+
recorded_with: VCR 2.5.0
|
@@ -2,32 +2,32 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products?$orderby=Name
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*; q=0.5, application/xml'
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
10
|
User-Agent:
|
15
11
|
- Ruby
|
12
|
+
Accept:
|
13
|
+
- "*/*; q=0.5, application/xml"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip,deflate
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
|
-
message:
|
19
|
+
message: ''
|
20
20
|
headers:
|
21
21
|
Cache-Control:
|
22
|
-
-
|
22
|
+
- private
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '2714'
|
25
25
|
Content-Type:
|
26
26
|
- application/atom+xml;type=feed;charset=utf-8
|
27
27
|
Server:
|
28
|
-
- Microsoft-IIS/
|
28
|
+
- Microsoft-IIS/8.0
|
29
29
|
Set-Cookie:
|
30
|
-
- ASP.NET_SessionId=
|
30
|
+
- ASP.NET_SessionId=qdt3u3osyrmligcxgcyujpa5; path=/; HttpOnly
|
31
31
|
X-Content-Type-Options:
|
32
32
|
- nosniff
|
33
33
|
Dataserviceversion:
|
@@ -37,33 +37,33 @@ http_interactions:
|
|
37
37
|
X-Powered-By:
|
38
38
|
- ASP.NET
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Sun, 26 Apr 2015 16:29:26 GMT
|
41
41
|
body:
|
42
|
-
encoding:
|
43
|
-
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://
|
42
|
+
encoding: UTF-8
|
43
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
|
44
44
|
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
45
45
|
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
46
|
-
xmlns:gml="http://www.opengis.net/gml"><id>http://
|
47
|
-
type="text">Products</title><updated>
|
48
|
-
title="Products" href="Products" /><entry><id>http://
|
46
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
|
47
|
+
type="text">Products</title><updated>2015-04-26T16:29:26Z</updated><link rel="self"
|
48
|
+
title="Products" href="Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
49
49
|
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
50
50
|
/><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
51
51
|
type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
|
52
|
-
/><title /><updated>
|
52
|
+
/><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
|
53
53
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
|
54
|
-
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">
|
54
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
|
55
55
|
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
|
56
|
-
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">
|
57
|
-
m:type="Edm.DateTime">
|
56
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:CreateDate><d:ModifiedDate
|
57
|
+
m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(4)</id><category
|
58
58
|
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
59
59
|
/><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
60
60
|
type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
|
61
|
-
/><title /><updated>
|
61
|
+
/><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
|
62
62
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
|
63
|
-
4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">
|
63
|
+
4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
|
64
64
|
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
|
65
|
-
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">
|
66
|
-
m:type="Edm.DateTime">
|
67
|
-
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
65
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:CreateDate><d:ModifiedDate
|
66
|
+
m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
67
|
+
http_version:
|
68
|
+
recorded_at: Sun, 26 Apr 2015 16:29:26 GMT
|
69
|
+
recorded_with: VCR 2.5.0
|
@@ -2,32 +2,32 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products?$orderby=Name
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*; q=0.5, application/xml'
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
10
|
User-Agent:
|
15
11
|
- Ruby
|
12
|
+
Accept:
|
13
|
+
- "*/*; q=0.5, application/xml"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip,deflate
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
|
-
message:
|
19
|
+
message: ''
|
20
20
|
headers:
|
21
21
|
Cache-Control:
|
22
|
-
-
|
22
|
+
- private
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '2735'
|
25
25
|
Content-Type:
|
26
26
|
- application/atom+xml;type=feed;charset=utf-8
|
27
27
|
Server:
|
28
|
-
- Microsoft-IIS/
|
28
|
+
- Microsoft-IIS/8.0
|
29
29
|
Set-Cookie:
|
30
|
-
- ASP.NET_SessionId=
|
30
|
+
- ASP.NET_SessionId=oydoxso1ufajqrivi1owc1y3; path=/; HttpOnly
|
31
31
|
X-Content-Type-Options:
|
32
32
|
- nosniff
|
33
33
|
Dataserviceversion:
|
@@ -37,33 +37,33 @@ http_interactions:
|
|
37
37
|
X-Powered-By:
|
38
38
|
- ASP.NET
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Sun, 26 Apr 2015 16:29:25 GMT
|
41
41
|
body:
|
42
|
-
encoding:
|
43
|
-
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://
|
42
|
+
encoding: UTF-8
|
43
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
|
44
44
|
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
45
45
|
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
46
|
-
xmlns:gml="http://www.opengis.net/gml"><id>http://
|
47
|
-
type="text">Products</title><updated>
|
48
|
-
title="Products" href="Products" /><entry><id>http://
|
46
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
|
47
|
+
type="text">Products</title><updated>2015-04-26T16:29:26Z</updated><link rel="self"
|
48
|
+
title="Products" href="Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
49
49
|
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
50
50
|
/><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
51
51
|
type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
|
52
|
-
/><title /><updated>
|
52
|
+
/><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
|
53
53
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
|
54
|
-
1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">
|
54
|
+
1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
|
55
55
|
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
|
56
|
-
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">
|
57
|
-
m:type="Edm.DateTime">
|
56
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:CreateDate><d:ModifiedDate
|
57
|
+
m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
58
58
|
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
59
59
|
/><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
60
60
|
type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
|
61
|
-
/><title /><updated>
|
61
|
+
/><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
|
62
62
|
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
|
63
63
|
2 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
|
64
64
|
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
|
65
|
-
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">
|
66
|
-
m:type="Edm.DateTime">
|
67
|
-
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
65
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:CreateDate><d:ModifiedDate
|
66
|
+
m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
67
|
+
http_version:
|
68
|
+
recorded_at: Sun, 26 Apr 2015 16:29:26 GMT
|
69
|
+
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/CleanDatabaseForTesting
|
6
6
|
body:
|
7
7
|
encoding: ASCII-8BIT
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Length:
|
@@ -23,11 +23,11 @@ http_interactions:
|
|
23
23
|
message: No Content
|
24
24
|
headers:
|
25
25
|
Cache-Control:
|
26
|
-
-
|
26
|
+
- private
|
27
27
|
Server:
|
28
|
-
- Microsoft-IIS/
|
28
|
+
- Microsoft-IIS/8.0
|
29
29
|
Set-Cookie:
|
30
|
-
- ASP.NET_SessionId=
|
30
|
+
- ASP.NET_SessionId=lnczwpi1jb4qmzrinl510zak; path=/; HttpOnly
|
31
31
|
X-Content-Type-Options:
|
32
32
|
- nosniff
|
33
33
|
Dataserviceversion:
|
@@ -37,10 +37,10 @@ http_interactions:
|
|
37
37
|
X-Powered-By:
|
38
38
|
- ASP.NET
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Sun, 26 Apr 2015 16:30:01 GMT
|
41
41
|
body:
|
42
|
-
encoding:
|
42
|
+
encoding: UTF-8
|
43
43
|
string: ''
|
44
|
-
http_version:
|
45
|
-
recorded_at:
|
46
|
-
recorded_with: VCR 2.
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 26 Apr 2015 16:30:02 GMT
|
46
|
+
recorded_with: VCR 2.5.0
|