ruby_tfs 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +7 -15
- data/lib/tfs/area_paths.rb +17 -0
- data/lib/tfs/class_helpers.rb +1 -1
- data/lib/tfs/query_engine.rb +3 -2
- data/ruby_tfs.gemspec +1 -1
- data/spec/fixtures/cassettes/area_paths.yml +451 -0
- data/spec/tfs/area_paths_spec.rb +38 -0
- metadata +8 -3
data/README.md
CHANGED
@@ -12,28 +12,20 @@ This wrapper is mostly a shell around the `ruby_odata` gem to provide a "kinder"
|
|
12
12
|
|
13
13
|
## API
|
14
14
|
|
15
|
-
The [TFS OData api][1] supports the following object types:
|
15
|
+
The [TFS OData api][1] supports the following object types (* = not implemented):
|
16
16
|
|
17
17
|
- Builds
|
18
|
-
- Build Definitions
|
18
|
+
- *Build Definitions
|
19
19
|
- Changesets
|
20
20
|
- Changes
|
21
|
-
- Branches
|
21
|
+
- *Branches
|
22
22
|
- WorkItems
|
23
|
-
- Attachments
|
24
|
-
- Links
|
23
|
+
- *Attachments
|
24
|
+
- *Links
|
25
25
|
- Projects
|
26
|
-
- Queries
|
26
|
+
- *Queries
|
27
27
|
- AreaPaths
|
28
|
-
- IterationPaths
|
29
|
-
|
30
|
-
Currently, we support the following (due to my own purposes) with plans to further support the rest as well:
|
31
|
-
|
32
|
-
- Builds
|
33
|
-
- Changesets
|
34
|
-
- WorkItems
|
35
|
-
- Projects
|
36
|
-
- WorkItems
|
28
|
+
- *IterationPaths
|
37
29
|
|
38
30
|
### Querying
|
39
31
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module TFS
|
2
|
+
class AreaPaths < Queryable
|
3
|
+
class << self
|
4
|
+
# Changeset can be found by id alone
|
5
|
+
#
|
6
|
+
# TFS::AreaPaths.find("area-path")
|
7
|
+
#
|
8
|
+
def find(area_path)
|
9
|
+
begin
|
10
|
+
TFS.areapaths(area_path).run.first
|
11
|
+
rescue RestClient::ResourceNotFound => e
|
12
|
+
raise Queryable::RecordNotFound, "No record found for '#{area_path}'"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/tfs/class_helpers.rb
CHANGED
@@ -9,7 +9,7 @@ module TFS
|
|
9
9
|
base_class(name).downcase
|
10
10
|
end
|
11
11
|
|
12
|
-
SPECIAL_CASES = { workitems: "WorkItems" }
|
12
|
+
SPECIAL_CASES = { workitems: "WorkItems", areapaths: "AreaPaths" }
|
13
13
|
|
14
14
|
def odata_class_from_method_name(method_name)
|
15
15
|
return SPECIAL_CASES[method_name] if SPECIAL_CASES.has_key? method_name
|
data/lib/tfs/query_engine.rb
CHANGED
@@ -3,8 +3,8 @@ require 'tfs/builds'
|
|
3
3
|
require 'tfs/changesets'
|
4
4
|
require 'tfs/changes'
|
5
5
|
require 'tfs/projects'
|
6
|
-
|
7
6
|
require 'tfs/work_items'
|
7
|
+
require 'tfs/area_paths'
|
8
8
|
|
9
9
|
module TFS
|
10
10
|
class QueryEngine
|
@@ -20,7 +20,8 @@ module TFS
|
|
20
20
|
TFS::Changesets,
|
21
21
|
TFS::Projects,
|
22
22
|
TFS::WorkItems,
|
23
|
-
TFS::Changes
|
23
|
+
TFS::Changes,
|
24
|
+
TFS::AreaPaths
|
24
25
|
]
|
25
26
|
|
26
27
|
# Default pagination `#all` limit
|
data/ruby_tfs.gemspec
CHANGED
@@ -0,0 +1,451 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/$metadata
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- TFS Ruby Gem
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- private
|
23
|
+
Content-Length:
|
24
|
+
- '22255'
|
25
|
+
Content-Type:
|
26
|
+
- application/xml;charset=utf-8
|
27
|
+
Expires:
|
28
|
+
- Wed, 13 Mar 2013 19:30:51 GMT
|
29
|
+
Vary:
|
30
|
+
- ! '*'
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/7.0
|
33
|
+
Dataserviceversion:
|
34
|
+
- 1.0;
|
35
|
+
X-Aspnet-Version:
|
36
|
+
- 4.0.30319
|
37
|
+
X-Powered-By:
|
38
|
+
- ASP.NET
|
39
|
+
Date:
|
40
|
+
- Wed, 13 Mar 2013 19:30:21 GMT
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<edmx:Edmx
|
44
|
+
Version=\"1.0\" xmlns:edmx=\"http://schemas.microsoft.com/ado/2007/06/edmx\">\r\n
|
45
|
+
\ <edmx:DataServices xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
46
|
+
m:DataServiceVersion=\"1.0\">\r\n <Schema Namespace=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities\"
|
47
|
+
xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
48
|
+
xmlns=\"http://schemas.microsoft.com/ado/2007/05/edm\">\r\n <EntityType
|
49
|
+
Name=\"Build\">\r\n <Key>\r\n <PropertyRef Name=\"Definition\"
|
50
|
+
/>\r\n <PropertyRef Name=\"Number\" />\r\n <PropertyRef
|
51
|
+
Name=\"Project\" />\r\n </Key>\r\n <Property Name=\"Project\"
|
52
|
+
Type=\"Edm.String\" Nullable=\"false\" />\r\n <Property Name=\"Definition\"
|
53
|
+
Type=\"Edm.String\" Nullable=\"false\" />\r\n <Property Name=\"Number\"
|
54
|
+
Type=\"Edm.String\" Nullable=\"false\" m:FC_TargetPath=\"SyndicationTitle\"
|
55
|
+
m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\" />\r\n <Property
|
56
|
+
Name=\"Reason\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
57
|
+
Name=\"Quality\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
58
|
+
Name=\"Status\" Type=\"Edm.String\" Nullable=\"true\" m:FC_TargetPath=\"SyndicationSummary\"
|
59
|
+
m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\" />\r\n <Property
|
60
|
+
Name=\"RequestedBy\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
61
|
+
Name=\"RequestedFor\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
62
|
+
Name=\"LastChangedBy\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
63
|
+
Name=\"StartTime\" Type=\"Edm.DateTime\" Nullable=\"false\" />\r\n <Property
|
64
|
+
Name=\"FinishTime\" Type=\"Edm.DateTime\" Nullable=\"false\" />\r\n <Property
|
65
|
+
Name=\"LastChangedOn\" Type=\"Edm.DateTime\" Nullable=\"false\" ConcurrencyMode=\"Fixed\"
|
66
|
+
m:FC_TargetPath=\"SyndicationUpdated\" m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\"
|
67
|
+
/>\r\n <Property Name=\"BuildFinished\" Type=\"Edm.Boolean\" Nullable=\"false\"
|
68
|
+
/>\r\n <Property Name=\"DropLocation\" Type=\"Edm.String\" Nullable=\"true\"
|
69
|
+
/>\r\n <Property Name=\"Errors\" Type=\"Edm.String\" Nullable=\"true\"
|
70
|
+
/>\r\n <Property Name=\"Warnings\" Type=\"Edm.String\" Nullable=\"true\"
|
71
|
+
/>\r\n <NavigationProperty Name=\"WorkItems\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build_WorkItems\"
|
72
|
+
FromRole=\"Build\" ToRole=\"WorkItems\" />\r\n <NavigationProperty
|
73
|
+
Name=\"Changesets\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build_Changesets\"
|
74
|
+
FromRole=\"Build\" ToRole=\"Changesets\" />\r\n </EntityType>\r\n <EntityType
|
75
|
+
Name=\"BuildDefinition\">\r\n <Key>\r\n <PropertyRef Name=\"Definition\"
|
76
|
+
/>\r\n <PropertyRef Name=\"Project\" />\r\n </Key>\r\n <Property
|
77
|
+
Name=\"Project\" Type=\"Edm.String\" Nullable=\"false\" />\r\n <Property
|
78
|
+
Name=\"Definition\" Type=\"Edm.String\" Nullable=\"false\" m:FC_TargetPath=\"SyndicationTitle\"
|
79
|
+
m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\" />\r\n </EntityType>\r\n
|
80
|
+
\ <EntityType Name=\"Changeset\">\r\n <Key>\r\n <PropertyRef
|
81
|
+
Name=\"Id\" />\r\n </Key>\r\n <Property Name=\"Id\" Type=\"Edm.Int32\"
|
82
|
+
Nullable=\"false\" />\r\n <Property Name=\"ArtifactUri\" Type=\"Edm.String\"
|
83
|
+
Nullable=\"true\" m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\"
|
84
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"Comment\" Type=\"Edm.String\"
|
85
|
+
Nullable=\"true\" m:FC_TargetPath=\"SyndicationSummary\" m:FC_ContentKind=\"text\"
|
86
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"Committer\" Type=\"Edm.String\"
|
87
|
+
Nullable=\"true\" />\r\n <Property Name=\"CreationDate\" Type=\"Edm.DateTime\"
|
88
|
+
Nullable=\"false\" ConcurrencyMode=\"Fixed\" m:FC_TargetPath=\"SyndicationUpdated\"
|
89
|
+
m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\" />\r\n <Property
|
90
|
+
Name=\"Owner\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
91
|
+
Name=\"Branch\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property
|
92
|
+
Name=\"WebEditorUrl\" Type=\"Edm.String\" Nullable=\"true\" />\r\n <NavigationProperty
|
93
|
+
Name=\"Changes\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset_Changes\"
|
94
|
+
FromRole=\"Changeset\" ToRole=\"Changes\" />\r\n <NavigationProperty
|
95
|
+
Name=\"WorkItems\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset_WorkItems\"
|
96
|
+
FromRole=\"Changeset\" ToRole=\"WorkItems\" />\r\n </EntityType>\r\n
|
97
|
+
\ <EntityType Name=\"Project\">\r\n <Key>\r\n <PropertyRef
|
98
|
+
Name=\"Name\" />\r\n </Key>\r\n <Property Name=\"Name\" Type=\"Edm.String\"
|
99
|
+
Nullable=\"false\" m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\"
|
100
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"Collection\" Type=\"Edm.String\"
|
101
|
+
Nullable=\"true\" />\r\n <NavigationProperty Name=\"Changesets\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Changesets\"
|
102
|
+
FromRole=\"Project\" ToRole=\"Changesets\" />\r\n <NavigationProperty
|
103
|
+
Name=\"Builds\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Builds\"
|
104
|
+
FromRole=\"Project\" ToRole=\"Builds\" />\r\n <NavigationProperty Name=\"BuildDefinitions\"
|
105
|
+
Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_BuildDefinitions\"
|
106
|
+
FromRole=\"Project\" ToRole=\"BuildDefinitions\" />\r\n <NavigationProperty
|
107
|
+
Name=\"WorkItems\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_WorkItems\"
|
108
|
+
FromRole=\"Project\" ToRole=\"WorkItems\" />\r\n <NavigationProperty
|
109
|
+
Name=\"Queries\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Queries\"
|
110
|
+
FromRole=\"Project\" ToRole=\"Queries\" />\r\n <NavigationProperty
|
111
|
+
Name=\"Branches\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Branches\"
|
112
|
+
FromRole=\"Project\" ToRole=\"Branches\" />\r\n <NavigationProperty
|
113
|
+
Name=\"AreaPaths\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_AreaPaths\"
|
114
|
+
FromRole=\"Project\" ToRole=\"AreaPaths\" />\r\n </EntityType>\r\n <EntityType
|
115
|
+
Name=\"WorkItem\">\r\n <Key>\r\n <PropertyRef Name=\"Id\"
|
116
|
+
/>\r\n </Key>\r\n <Property Name=\"Id\" Type=\"Edm.Int32\" Nullable=\"false\"
|
117
|
+
/>\r\n <Property Name=\"AreaPath\" Type=\"Edm.String\" Nullable=\"true\"
|
118
|
+
/>\r\n <Property Name=\"IterationPath\" Type=\"Edm.String\" Nullable=\"true\"
|
119
|
+
/>\r\n <Property Name=\"Revision\" Type=\"Edm.Int32\" Nullable=\"false\"
|
120
|
+
/>\r\n <Property Name=\"Priority\" Type=\"Edm.String\" Nullable=\"true\"
|
121
|
+
/>\r\n <Property Name=\"Severity\" Type=\"Edm.String\" Nullable=\"true\"
|
122
|
+
/>\r\n <Property Name=\"StackRank\" Type=\"Edm.String\" Nullable=\"true\"
|
123
|
+
/>\r\n <Property Name=\"Project\" Type=\"Edm.String\" Nullable=\"true\"
|
124
|
+
/>\r\n <Property Name=\"AssignedTo\" Type=\"Edm.String\" Nullable=\"true\"
|
125
|
+
/>\r\n <Property Name=\"CreatedDate\" Type=\"Edm.DateTime\" Nullable=\"false\"
|
126
|
+
/>\r\n <Property Name=\"CreatedBy\" Type=\"Edm.String\" Nullable=\"true\"
|
127
|
+
/>\r\n <Property Name=\"ChangedDate\" Type=\"Edm.DateTime\" Nullable=\"false\"
|
128
|
+
ConcurrencyMode=\"Fixed\" m:FC_TargetPath=\"SyndicationUpdated\" m:FC_ContentKind=\"text\"
|
129
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"ChangedBy\" Type=\"Edm.String\"
|
130
|
+
Nullable=\"true\" />\r\n <Property Name=\"ResolvedBy\" Type=\"Edm.String\"
|
131
|
+
Nullable=\"true\" />\r\n <Property Name=\"Title\" Type=\"Edm.String\"
|
132
|
+
Nullable=\"true\" m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\"
|
133
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"State\" Type=\"Edm.String\"
|
134
|
+
Nullable=\"true\" />\r\n <Property Name=\"Type\" Type=\"Edm.String\"
|
135
|
+
Nullable=\"true\" />\r\n <Property Name=\"Reason\" Type=\"Edm.String\"
|
136
|
+
Nullable=\"true\" />\r\n <Property Name=\"Description\" Type=\"Edm.String\"
|
137
|
+
Nullable=\"true\" m:FC_TargetPath=\"SyndicationSummary\" m:FC_ContentKind=\"text\"
|
138
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"ReproSteps\" Type=\"Edm.String\"
|
139
|
+
Nullable=\"true\" />\r\n <Property Name=\"FoundInBuild\" Type=\"Edm.String\"
|
140
|
+
Nullable=\"true\" />\r\n <Property Name=\"IntegratedInBuild\" Type=\"Edm.String\"
|
141
|
+
Nullable=\"true\" />\r\n <Property Name=\"WebEditorUrl\" Type=\"Edm.String\"
|
142
|
+
Nullable=\"true\" />\r\n <NavigationProperty Name=\"Attachments\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem_Attachments\"
|
143
|
+
FromRole=\"WorkItem\" ToRole=\"Attachments\" />\r\n </EntityType>\r\n
|
144
|
+
\ <EntityType Name=\"Attachment\" m:HasStream=\"true\">\r\n <Key>\r\n
|
145
|
+
\ <PropertyRef Name=\"Id\" />\r\n </Key>\r\n <Property
|
146
|
+
Name=\"Id\" Type=\"Edm.String\" Nullable=\"false\" />\r\n <Property
|
147
|
+
Name=\"WorkItemId\" Type=\"Edm.Int32\" Nullable=\"false\" />\r\n <Property
|
148
|
+
Name=\"Index\" Type=\"Edm.Int32\" Nullable=\"false\" />\r\n <Property
|
149
|
+
Name=\"AttachedTime\" Type=\"Edm.DateTime\" Nullable=\"false\" ConcurrencyMode=\"Fixed\"
|
150
|
+
m:FC_TargetPath=\"SyndicationUpdated\" m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\"
|
151
|
+
/>\r\n <Property Name=\"CreationTime\" Type=\"Edm.DateTime\" Nullable=\"false\"
|
152
|
+
/>\r\n <Property Name=\"LastWriteTime\" Type=\"Edm.DateTime\" Nullable=\"false\"
|
153
|
+
/>\r\n <Property Name=\"Name\" Type=\"Edm.String\" Nullable=\"true\"
|
154
|
+
m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\"
|
155
|
+
/>\r\n <Property Name=\"Extension\" Type=\"Edm.String\" Nullable=\"true\"
|
156
|
+
/>\r\n <Property Name=\"Comment\" Type=\"Edm.String\" Nullable=\"true\"
|
157
|
+
m:FC_TargetPath=\"SyndicationSummary\" m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\"
|
158
|
+
/>\r\n <Property Name=\"Length\" Type=\"Edm.Int64\" Nullable=\"false\"
|
159
|
+
/>\r\n <Property Name=\"Uri\" Type=\"Edm.String\" Nullable=\"true\"
|
160
|
+
/>\r\n </EntityType>\r\n <EntityType Name=\"Change\">\r\n <Key>\r\n
|
161
|
+
\ <PropertyRef Name=\"Changeset\" />\r\n <PropertyRef Name=\"Path\"
|
162
|
+
/>\r\n </Key>\r\n <Property Name=\"Collection\" Type=\"Edm.String\"
|
163
|
+
Nullable=\"true\" />\r\n <Property Name=\"Changeset\" Type=\"Edm.Int32\"
|
164
|
+
Nullable=\"false\" />\r\n <Property Name=\"ChangeType\" Type=\"Edm.String\"
|
165
|
+
Nullable=\"true\" />\r\n <Property Name=\"Path\" Type=\"Edm.String\"
|
166
|
+
Nullable=\"false\" m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\"
|
167
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"Type\" Type=\"Edm.String\"
|
168
|
+
Nullable=\"true\" />\r\n </EntityType>\r\n <EntityType Name=\"Query\">\r\n
|
169
|
+
\ <Key>\r\n <PropertyRef Name=\"Id\" />\r\n </Key>\r\n
|
170
|
+
\ <Property Name=\"Id\" Type=\"Edm.String\" Nullable=\"false\" />\r\n
|
171
|
+
\ <Property Name=\"Name\" Type=\"Edm.String\" Nullable=\"true\" />\r\n
|
172
|
+
\ <Property Name=\"Description\" Type=\"Edm.String\" Nullable=\"true\"
|
173
|
+
m:FC_TargetPath=\"SyndicationSummary\" m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\"
|
174
|
+
/>\r\n <Property Name=\"QueryText\" Type=\"Edm.String\" Nullable=\"true\"
|
175
|
+
/>\r\n <Property Name=\"Path\" Type=\"Edm.String\" Nullable=\"true\"
|
176
|
+
m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\"
|
177
|
+
/>\r\n <NavigationProperty Name=\"WorkItems\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Query_WorkItems\"
|
178
|
+
FromRole=\"Query\" ToRole=\"WorkItems\" />\r\n <Property Name=\"Project\"
|
179
|
+
Type=\"Edm.String\" Nullable=\"true\" />\r\n <Property Name=\"QueryType\"
|
180
|
+
Type=\"Edm.String\" Nullable=\"true\" />\r\n </EntityType>\r\n <EntityType
|
181
|
+
Name=\"Branch\">\r\n <Key>\r\n <PropertyRef Name=\"Path\"
|
182
|
+
/>\r\n </Key>\r\n <Property Name=\"Path\" Type=\"Edm.String\"
|
183
|
+
Nullable=\"false\" m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\"
|
184
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"Description\" Type=\"Edm.String\"
|
185
|
+
Nullable=\"true\" m:FC_TargetPath=\"SyndicationSummary\" m:FC_ContentKind=\"text\"
|
186
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"DateCreated\" Type=\"Edm.DateTime\"
|
187
|
+
Nullable=\"false\" ConcurrencyMode=\"Fixed\" m:FC_TargetPath=\"SyndicationUpdated\"
|
188
|
+
m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\" />\r\n <NavigationProperty
|
189
|
+
Name=\"Changesets\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Branch_Changesets\"
|
190
|
+
FromRole=\"Branch\" ToRole=\"Changesets\" />\r\n </EntityType>\r\n <EntityType
|
191
|
+
Name=\"AreaPath\">\r\n <Key>\r\n <PropertyRef Name=\"Path\"
|
192
|
+
/>\r\n </Key>\r\n <Property Name=\"Path\" Type=\"Edm.String\"
|
193
|
+
Nullable=\"false\" m:FC_TargetPath=\"SyndicationTitle\" m:FC_ContentKind=\"text\"
|
194
|
+
m:FC_KeepInContent=\"true\" />\r\n <Property Name=\"Name\" Type=\"Edm.String\"
|
195
|
+
Nullable=\"true\" ConcurrencyMode=\"Fixed\" m:FC_TargetPath=\"SyndicationSummary\"
|
196
|
+
m:FC_ContentKind=\"text\" m:FC_KeepInContent=\"true\" />\r\n <NavigationProperty
|
197
|
+
Name=\"SubAreas\" Relationship=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.AreaPath_SubAreas\"
|
198
|
+
FromRole=\"AreaPath\" ToRole=\"SubAreas\" />\r\n </EntityType>\r\n <Association
|
199
|
+
Name=\"Build_WorkItems\">\r\n <End Role=\"Build\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build\"
|
200
|
+
Multiplicity=\"*\" />\r\n <End Role=\"WorkItems\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem\"
|
201
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Build_Changesets\">\r\n
|
202
|
+
\ <End Role=\"Build\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build\"
|
203
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Changesets\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset\"
|
204
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Changeset_Changes\">\r\n
|
205
|
+
\ <End Role=\"Changeset\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset\"
|
206
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Changes\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Change\"
|
207
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Changeset_WorkItems\">\r\n
|
208
|
+
\ <End Role=\"Changeset\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset\"
|
209
|
+
Multiplicity=\"*\" />\r\n <End Role=\"WorkItems\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem\"
|
210
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_Changesets\">\r\n
|
211
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
212
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Changesets\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset\"
|
213
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_Builds\">\r\n
|
214
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
215
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Builds\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build\"
|
216
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_BuildDefinitions\">\r\n
|
217
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
218
|
+
Multiplicity=\"*\" />\r\n <End Role=\"BuildDefinitions\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.BuildDefinition\"
|
219
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_WorkItems\">\r\n
|
220
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
221
|
+
Multiplicity=\"*\" />\r\n <End Role=\"WorkItems\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem\"
|
222
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_Queries\">\r\n
|
223
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
224
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Queries\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Query\"
|
225
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_Branches\">\r\n
|
226
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
227
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Branches\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Branch\"
|
228
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Project_AreaPaths\">\r\n
|
229
|
+
\ <End Role=\"Project\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
230
|
+
Multiplicity=\"*\" />\r\n <End Role=\"AreaPaths\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.AreaPath\"
|
231
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"WorkItem_Attachments\">\r\n
|
232
|
+
\ <End Role=\"WorkItem\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem\"
|
233
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Attachments\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Attachment\"
|
234
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Query_WorkItems\">\r\n
|
235
|
+
\ <End Role=\"Query\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Query\"
|
236
|
+
Multiplicity=\"*\" />\r\n <End Role=\"WorkItems\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem\"
|
237
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"Branch_Changesets\">\r\n
|
238
|
+
\ <End Role=\"Branch\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Branch\"
|
239
|
+
Multiplicity=\"*\" />\r\n <End Role=\"Changesets\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset\"
|
240
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n <Association Name=\"AreaPath_SubAreas\">\r\n
|
241
|
+
\ <End Role=\"AreaPath\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.AreaPath\"
|
242
|
+
Multiplicity=\"*\" />\r\n <End Role=\"SubAreas\" Type=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.AreaPath\"
|
243
|
+
Multiplicity=\"*\" />\r\n </Association>\r\n </Schema>\r\n <Schema
|
244
|
+
Namespace=\"Microsoft.Samples.DPE.ODataTFS.Model\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
245
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
246
|
+
xmlns=\"http://schemas.microsoft.com/ado/2007/05/edm\">\r\n <EntityContainer
|
247
|
+
Name=\"TFSData\" m:IsDefaultEntityContainer=\"true\">\r\n <EntitySet
|
248
|
+
Name=\"Builds\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build\"
|
249
|
+
/>\r\n <EntitySet Name=\"BuildDefinitions\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.BuildDefinition\"
|
250
|
+
/>\r\n <EntitySet Name=\"Changesets\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset\"
|
251
|
+
/>\r\n <EntitySet Name=\"Projects\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
252
|
+
/>\r\n <EntitySet Name=\"WorkItems\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem\"
|
253
|
+
/>\r\n <EntitySet Name=\"Attachments\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Attachment\"
|
254
|
+
/>\r\n <EntitySet Name=\"Changes\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Change\"
|
255
|
+
/>\r\n <EntitySet Name=\"Queries\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Query\"
|
256
|
+
/>\r\n <EntitySet Name=\"Branches\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Branch\"
|
257
|
+
/>\r\n <EntitySet Name=\"AreaPaths\" EntityType=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.AreaPath\"
|
258
|
+
/>\r\n <AssociationSet Name=\"Build_WorkItems\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build_WorkItems\">\r\n
|
259
|
+
\ <End Role=\"Build\" EntitySet=\"Builds\" />\r\n <End Role=\"WorkItems\"
|
260
|
+
EntitySet=\"WorkItems\" />\r\n </AssociationSet>\r\n <AssociationSet
|
261
|
+
Name=\"Build_Changesets\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Build_Changesets\">\r\n
|
262
|
+
\ <End Role=\"Build\" EntitySet=\"Builds\" />\r\n <End Role=\"Changesets\"
|
263
|
+
EntitySet=\"Changesets\" />\r\n </AssociationSet>\r\n <AssociationSet
|
264
|
+
Name=\"Changeset_Changes\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset_Changes\">\r\n
|
265
|
+
\ <End Role=\"Changeset\" EntitySet=\"Changesets\" />\r\n <End
|
266
|
+
Role=\"Changes\" EntitySet=\"Changes\" />\r\n </AssociationSet>\r\n
|
267
|
+
\ <AssociationSet Name=\"Changeset_WorkItems\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Changeset_WorkItems\">\r\n
|
268
|
+
\ <End Role=\"Changeset\" EntitySet=\"Changesets\" />\r\n <End
|
269
|
+
Role=\"WorkItems\" EntitySet=\"WorkItems\" />\r\n </AssociationSet>\r\n
|
270
|
+
\ <AssociationSet Name=\"Project_Changesets\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Changesets\">\r\n
|
271
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
272
|
+
Role=\"Changesets\" EntitySet=\"Changesets\" />\r\n </AssociationSet>\r\n
|
273
|
+
\ <AssociationSet Name=\"Project_Builds\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Builds\">\r\n
|
274
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
275
|
+
Role=\"Builds\" EntitySet=\"Builds\" />\r\n </AssociationSet>\r\n <AssociationSet
|
276
|
+
Name=\"Project_BuildDefinitions\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_BuildDefinitions\">\r\n
|
277
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
278
|
+
Role=\"BuildDefinitions\" EntitySet=\"BuildDefinitions\" />\r\n </AssociationSet>\r\n
|
279
|
+
\ <AssociationSet Name=\"Project_WorkItems\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_WorkItems\">\r\n
|
280
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
281
|
+
Role=\"WorkItems\" EntitySet=\"WorkItems\" />\r\n </AssociationSet>\r\n
|
282
|
+
\ <AssociationSet Name=\"Project_Queries\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Queries\">\r\n
|
283
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
284
|
+
Role=\"Queries\" EntitySet=\"Queries\" />\r\n </AssociationSet>\r\n
|
285
|
+
\ <AssociationSet Name=\"Project_Branches\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_Branches\">\r\n
|
286
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
287
|
+
Role=\"Branches\" EntitySet=\"Branches\" />\r\n </AssociationSet>\r\n
|
288
|
+
\ <AssociationSet Name=\"Project_AreaPaths\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project_AreaPaths\">\r\n
|
289
|
+
\ <End Role=\"Project\" EntitySet=\"Projects\" />\r\n <End
|
290
|
+
Role=\"AreaPaths\" EntitySet=\"AreaPaths\" />\r\n </AssociationSet>\r\n
|
291
|
+
\ <AssociationSet Name=\"WorkItem_Attachments\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.WorkItem_Attachments\">\r\n
|
292
|
+
\ <End Role=\"WorkItem\" EntitySet=\"WorkItems\" />\r\n <End
|
293
|
+
Role=\"Attachments\" EntitySet=\"Attachments\" />\r\n </AssociationSet>\r\n
|
294
|
+
\ <AssociationSet Name=\"Query_WorkItems\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Query_WorkItems\">\r\n
|
295
|
+
\ <End Role=\"Query\" EntitySet=\"Queries\" />\r\n <End Role=\"WorkItems\"
|
296
|
+
EntitySet=\"WorkItems\" />\r\n </AssociationSet>\r\n <AssociationSet
|
297
|
+
Name=\"Branch_Changesets\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Branch_Changesets\">\r\n
|
298
|
+
\ <End Role=\"Branch\" EntitySet=\"Branches\" />\r\n <End
|
299
|
+
Role=\"Changesets\" EntitySet=\"Changesets\" />\r\n </AssociationSet>\r\n
|
300
|
+
\ <AssociationSet Name=\"AreaPath_SubAreas\" Association=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.AreaPath_SubAreas\">\r\n
|
301
|
+
\ <End Role=\"AreaPath\" EntitySet=\"AreaPaths\" />\r\n <End
|
302
|
+
Role=\"SubAreas\" EntitySet=\"AreaPaths\" />\r\n </AssociationSet>\r\n
|
303
|
+
\ <FunctionImport Name=\"TriggerBuild\" m:HttpMethod=\"POST\" />\r\n
|
304
|
+
\ </EntityContainer>\r\n </Schema>\r\n </edmx:DataServices>\r\n</edmx:Edmx>"
|
305
|
+
http_version:
|
306
|
+
recorded_at: Wed, 13 Mar 2013 19:30:20 GMT
|
307
|
+
- request:
|
308
|
+
method: get
|
309
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/AreaPaths()?$top=50
|
310
|
+
body:
|
311
|
+
encoding: US-ASCII
|
312
|
+
string: ''
|
313
|
+
headers:
|
314
|
+
Accept:
|
315
|
+
- ! '*/*; q=0.5, application/xml'
|
316
|
+
Accept-Encoding:
|
317
|
+
- gzip, deflate
|
318
|
+
User-Agent:
|
319
|
+
- TFS Ruby Gem
|
320
|
+
response:
|
321
|
+
status:
|
322
|
+
code: 200
|
323
|
+
message: OK
|
324
|
+
headers:
|
325
|
+
Cache-Control:
|
326
|
+
- private
|
327
|
+
Content-Length:
|
328
|
+
- '544'
|
329
|
+
Content-Type:
|
330
|
+
- application/atom+xml;charset=utf-8
|
331
|
+
Expires:
|
332
|
+
- Wed, 13 Mar 2013 19:30:52 GMT
|
333
|
+
Vary:
|
334
|
+
- ! '*'
|
335
|
+
Server:
|
336
|
+
- Microsoft-IIS/7.0
|
337
|
+
Dataserviceversion:
|
338
|
+
- 2.0;
|
339
|
+
X-Aspnet-Version:
|
340
|
+
- 4.0.30319
|
341
|
+
X-Powered-By:
|
342
|
+
- ASP.NET
|
343
|
+
Date:
|
344
|
+
- Wed, 13 Mar 2013 19:30:24 GMT
|
345
|
+
body:
|
346
|
+
encoding: US-ASCII
|
347
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<feed
|
348
|
+
xml:base=\"https://codeplexodata.cloudapp.net/TFS29/\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
349
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
350
|
+
xmlns=\"http://www.w3.org/2005/Atom\">\r\n <title type=\"text\">AreaPaths</title>\r\n
|
351
|
+
\ <id>https://codeplexodata.cloudapp.net/TFS29/AreaPaths()/</id>\r\n <updated>2013-03-13T19:30:24Z</updated>\r\n
|
352
|
+
\ <author>\r\n <name />\r\n </author>\r\n <link rel=\"self\" title=\"AreaPaths\"
|
353
|
+
href=\"AreaPaths\" />\r\n</feed>"
|
354
|
+
http_version:
|
355
|
+
recorded_at: Wed, 13 Mar 2013 19:30:23 GMT
|
356
|
+
- request:
|
357
|
+
method: get
|
358
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/AreaPaths('test_path')
|
359
|
+
body:
|
360
|
+
encoding: US-ASCII
|
361
|
+
string: ''
|
362
|
+
headers:
|
363
|
+
Accept:
|
364
|
+
- ! '*/*; q=0.5, application/xml'
|
365
|
+
Accept-Encoding:
|
366
|
+
- gzip, deflate
|
367
|
+
User-Agent:
|
368
|
+
- TFS Ruby Gem
|
369
|
+
response:
|
370
|
+
status:
|
371
|
+
code: 404
|
372
|
+
message: Not Found
|
373
|
+
headers:
|
374
|
+
Cache-Control:
|
375
|
+
- private
|
376
|
+
Content-Length:
|
377
|
+
- '249'
|
378
|
+
Content-Type:
|
379
|
+
- application/xml
|
380
|
+
Expires:
|
381
|
+
- Wed, 13 Mar 2013 19:30:54 GMT
|
382
|
+
Vary:
|
383
|
+
- ! '*'
|
384
|
+
Server:
|
385
|
+
- Microsoft-IIS/7.0
|
386
|
+
Dataserviceversion:
|
387
|
+
- 1.0;
|
388
|
+
X-Aspnet-Version:
|
389
|
+
- 4.0.30319
|
390
|
+
X-Powered-By:
|
391
|
+
- ASP.NET
|
392
|
+
Date:
|
393
|
+
- Wed, 13 Mar 2013 19:30:25 GMT
|
394
|
+
body:
|
395
|
+
encoding: US-ASCII
|
396
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<error
|
397
|
+
xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\">\r\n
|
398
|
+
\ <code></code>\r\n <message xml:lang=\"en-US\">Resource not found for the
|
399
|
+
segment 'AreaPaths'.</message>\r\n</error>"
|
400
|
+
http_version:
|
401
|
+
recorded_at: Wed, 13 Mar 2013 19:30:25 GMT
|
402
|
+
- request:
|
403
|
+
method: get
|
404
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/AreaPaths()?$filter=Name%20eq%20'Test%20Path'&$top=5
|
405
|
+
body:
|
406
|
+
encoding: US-ASCII
|
407
|
+
string: ''
|
408
|
+
headers:
|
409
|
+
Accept:
|
410
|
+
- ! '*/*; q=0.5, application/xml'
|
411
|
+
Accept-Encoding:
|
412
|
+
- gzip, deflate
|
413
|
+
User-Agent:
|
414
|
+
- TFS Ruby Gem
|
415
|
+
response:
|
416
|
+
status:
|
417
|
+
code: 200
|
418
|
+
message: OK
|
419
|
+
headers:
|
420
|
+
Cache-Control:
|
421
|
+
- private
|
422
|
+
Content-Length:
|
423
|
+
- '544'
|
424
|
+
Content-Type:
|
425
|
+
- application/atom+xml;charset=utf-8
|
426
|
+
Expires:
|
427
|
+
- Wed, 13 Mar 2013 19:30:56 GMT
|
428
|
+
Vary:
|
429
|
+
- ! '*'
|
430
|
+
Server:
|
431
|
+
- Microsoft-IIS/7.0
|
432
|
+
Dataserviceversion:
|
433
|
+
- 2.0;
|
434
|
+
X-Aspnet-Version:
|
435
|
+
- 4.0.30319
|
436
|
+
X-Powered-By:
|
437
|
+
- ASP.NET
|
438
|
+
Date:
|
439
|
+
- Wed, 13 Mar 2013 19:30:27 GMT
|
440
|
+
body:
|
441
|
+
encoding: US-ASCII
|
442
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<feed
|
443
|
+
xml:base=\"https://codeplexodata.cloudapp.net/TFS29/\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
444
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
445
|
+
xmlns=\"http://www.w3.org/2005/Atom\">\r\n <title type=\"text\">AreaPaths</title>\r\n
|
446
|
+
\ <id>https://codeplexodata.cloudapp.net/TFS29/AreaPaths()/</id>\r\n <updated>2013-03-13T19:30:27Z</updated>\r\n
|
447
|
+
\ <author>\r\n <name />\r\n </author>\r\n <link rel=\"self\" title=\"AreaPaths\"
|
448
|
+
href=\"AreaPaths\" />\r\n</feed>"
|
449
|
+
http_version:
|
450
|
+
recorded_at: Wed, 13 Mar 2013 19:30:26 GMT
|
451
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
@pending
|
4
|
+
describe TFS::AreaPaths do
|
5
|
+
let(:client) { TFS.client }
|
6
|
+
|
7
|
+
before do
|
8
|
+
TFS.configure do |config|
|
9
|
+
config.endpoint = "https://codeplexodata.cloudapp.net/TFS29"
|
10
|
+
config.username ='snd\plukevdh_cp'
|
11
|
+
config.password = 'garbage'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# TODO: Very poor testing against Codeplex
|
16
|
+
# because we have no area paths. Eventually
|
17
|
+
# migrating this over to visualstudio.com
|
18
|
+
context "finders" do
|
19
|
+
use_vcr_cassette 'area_paths'
|
20
|
+
|
21
|
+
it "can get paths from TFS, limits to 50" do
|
22
|
+
results = TFS::AreaPaths.all
|
23
|
+
results.count.should == 0
|
24
|
+
end
|
25
|
+
|
26
|
+
it "can get a specific area path" do
|
27
|
+
expect { TFS::AreaPaths.find('test_path') }.to raise_error(TFS::Queryable::RecordNotFound)
|
28
|
+
end
|
29
|
+
|
30
|
+
it "can query in the raw" do
|
31
|
+
results = TFS::AreaPaths.odata_query("Name eq 'Test Path'").limit(5).run
|
32
|
+
results.each do |build|
|
33
|
+
build.Name.should == 'Test Path'
|
34
|
+
end
|
35
|
+
results.count.should == 0
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_tfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_odata
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- LICENSE.md
|
55
55
|
- README.md
|
56
56
|
- ruby_tfs.gemspec
|
57
|
+
- lib/tfs/area_paths.rb
|
57
58
|
- lib/tfs/builds.rb
|
58
59
|
- lib/tfs/changes.rb
|
59
60
|
- lib/tfs/changesets.rb
|
@@ -65,6 +66,7 @@ files:
|
|
65
66
|
- lib/tfs/queryable.rb
|
66
67
|
- lib/tfs/work_items.rb
|
67
68
|
- lib/tfs.rb
|
69
|
+
- spec/fixtures/cassettes/area_paths.yml
|
68
70
|
- spec/fixtures/cassettes/builds.yml
|
69
71
|
- spec/fixtures/cassettes/changeset_queries.yml
|
70
72
|
- spec/fixtures/cassettes/changesets.yml
|
@@ -74,6 +76,7 @@ files:
|
|
74
76
|
- spec/fixtures/cassettes/projects.yml
|
75
77
|
- spec/fixtures/cassettes/workitems.yml
|
76
78
|
- spec/spec_helper.rb
|
79
|
+
- spec/tfs/area_paths_spec.rb
|
77
80
|
- spec/tfs/builds_spec.rb
|
78
81
|
- spec/tfs/changesets_spec.rb
|
79
82
|
- spec/tfs/client_spec.rb
|
@@ -96,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
99
|
version: '0'
|
97
100
|
segments:
|
98
101
|
- 0
|
99
|
-
hash:
|
102
|
+
hash: 4570457446438546844
|
100
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
104
|
none: false
|
102
105
|
requirements:
|
@@ -110,6 +113,7 @@ signing_key:
|
|
110
113
|
specification_version: 3
|
111
114
|
summary: A Ruby interface to the TFS OData API.
|
112
115
|
test_files:
|
116
|
+
- spec/fixtures/cassettes/area_paths.yml
|
113
117
|
- spec/fixtures/cassettes/builds.yml
|
114
118
|
- spec/fixtures/cassettes/changeset_queries.yml
|
115
119
|
- spec/fixtures/cassettes/changesets.yml
|
@@ -119,6 +123,7 @@ test_files:
|
|
119
123
|
- spec/fixtures/cassettes/projects.yml
|
120
124
|
- spec/fixtures/cassettes/workitems.yml
|
121
125
|
- spec/spec_helper.rb
|
126
|
+
- spec/tfs/area_paths_spec.rb
|
122
127
|
- spec/tfs/builds_spec.rb
|
123
128
|
- spec/tfs/changesets_spec.rb
|
124
129
|
- spec/tfs/client_spec.rb
|