forked from fabric8-analytics/fabric8-analytics-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gremlin.feature
270 lines (245 loc) · 17.8 KB
/
gremlin.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
Feature: Check the Gremlin instance and its behaviour
@requires_access_to_graph_db
Scenario: Check that the Gremlin is available
Given System is running
When I access Gremlin API
Then I should get 200 status code
Then I should get valid Gremlin response
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to find vertexes
Given System is running
When I ask Gremlin to find all vertexes having property vertex_label set to foobar
Then I should get 200 status code
And I should get valid Gremlin response
And I should get 0 vertexes
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to find vertexes for given ecosystems
Given System is running
When I ask Gremlin to find number of vertexes for the ecosystem npm
Then I should get 200 status code
And I should get valid Gremlin response
And I should find at least one such vertex
When I ask Gremlin to find number of vertexes for the ecosystem go
Then I should get 200 status code
And I should get valid Gremlin response
And I should find at least one such vertex
When I ask Gremlin to find number of vertexes for the ecosystem pypi
Then I should get 200 status code
And I should get valid Gremlin response
And I should find at least one such vertex
When I ask Gremlin to find number of vertexes for the ecosystem maven
Then I should get 200 status code
And I should get valid Gremlin response
And I should find at least one such vertex
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in any versions for the npm ecosystem
Given System is running
When I ask Gremlin to find all versions of the package sequence in the ecosystem npm
Then I should get 200 status code
And I should get valid Gremlin response
And I should find the following properties (description, last_updated, pecosystem, pname, version, vertex_label) in all found packages
And I should not find any property apart from (description, last_updated, pecosystem, pname, version, vertex_label, licenses, gh_release_date) in all found packages
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in any versions for the Maven ecosystem
Given System is running
When I ask Gremlin to find all versions of the package io.vertx:vertx-core in the ecosystem maven
Then I should get 200 status code
And I should get valid Gremlin response
# the property 'description' won't be set for newer Maven packages
# please see https://github.com/openshiftio/openshift.io/issues/2475
#And I should find the following properties (description, last_updated, pecosystem, pname, version, vertex_label) in all found packages
And I should find the following properties (last_updated, pecosystem, pname, version, vertex_label) in all found packages
# the following properties might not be set for newer versions
# please see https://github.com/openshiftio/openshift.io/issues/2396 for context
# And I should find the following properties (cm_avg_cyclomatic_complexity, cm_loc, cm_num_files, dependents_count) in all found packages
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in any versions for the Pypi ecosystem
Given System is running
When I ask Gremlin to find all versions of the package clojure_py in the ecosystem pypi
Then I should get 200 status code
And I should get valid Gremlin response
And I should find the following properties (description, last_updated, pecosystem, pname, version, vertex_label) in all found packages
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package and version for the npm ecosystem
Given System is running
When I ask Gremlin to find the package sequence version 3.0.0 in the ecosystem npm
Then I should get 200 status code
And I should get valid Gremlin response
And I should find the following properties (description, last_updated, pecosystem, pname, version, vertex_label) in all found packages
And I should not find any property apart from (description, last_updated, pecosystem, pname, version, vertex_label, licenses) in all found packages
And I should find that the pecosystem property is set to npm in the package properties
And I should find that the pname property is set to sequence in the package properties
And I should find that the version property is set to 3.0.0 in the package properties
And I should find that the licenses property is set to Apache 2.0 in the package properties
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package and version for ecosystem Maven
Given System is running
When I ask Gremlin to find the package io.vertx:vertx-core version 3.4.0 in the ecosystem maven
Then I should get 200 status code
And I should get valid Gremlin response
And I should find the following properties (description, last_updated, pecosystem, pname, version, vertex_label) in all found packages
And I should find the following properties (cm_avg_cyclomatic_complexity, cm_loc, cm_num_files, dependents_count, relative_used) in all found packages
And I should find that the pecosystem property is set to maven in the package properties
And I should find that the pname property is set to io.vertx:vertx-core in the package properties
And I should find that the version property is set to 3.4.0 in the package properties
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package and version for ecosystem Pypi
Given System is running
When I ask Gremlin to find the package clojure_py version 0.2.4 in the ecosystem pypi
Then I should get 200 status code
And I should get valid Gremlin response
And I should find the following properties (description, last_updated, pecosystem, pname, version, vertex_label) in all found packages
And I should find that the pecosystem property is set to pypi in the package properties
And I should find that the pname property is set to clojure_py in the package properties
And I should find that the version property is set to 0.2.4 in the package properties
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in the npm ecosystem
Given System is running
When I ask Gremlin to find the package sequence in the ecosystem npm
Then I should get 200 status code
And I should get valid Gremlin response
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in the Maven ecosystem
Given System is running
When I ask Gremlin to find the package io.vertx:vertx-core in the ecosystem maven
Then I should get 200 status code
And I should get valid Gremlin response
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in the Pypi ecosystem
Given System is running
When I ask Gremlin to find the package clojure_py in the ecosystem pypi
Then I should get 200 status code
And I should get valid Gremlin response
And I should find that all found packages have valid timestamp with the last update time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package
Given System is running
When I ask Gremlin to find the package sequence in the ecosystem npm
And I remember the current time
Then I should get 200 status code
And I should get valid Gremlin response
And I should find that all found packages have valid timestamp with the last update time
And I should find that the package data is older than remembered time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to read last update timestamp for the selected package from the Pypi ecosystem
Given System is running
When I read the last update time for the package clojure_py version 0.2.4 in the ecosystem pypi
Then I should get 200 status code
And I should get valid Gremlin response
And I should get a valid timestamp represented as UNIX time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to read last update timestamp for the selected package from the npm ecosystem
Given System is running
When I read the last update time for the package sequence version 3.0.0 in the ecosystem npm
Then I should get 200 status code
And I should get valid Gremlin response
And I should get a valid timestamp represented as UNIX time
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to read last update timestamp for the selected package from the Maven ecosystem
Given System is running
When I read the last update time for the package io.vertx:vertx-core version 3.4.0 in the ecosystem maven
Then I should get 200 status code
And I should get valid Gremlin response
And I should get a valid timestamp represented as UNIX time
@requires_access_to_graph_db
Scenario: Check numeric values for GitHub metadata for the package from the pypi ecosystem
When I ask Gremlin to find the package clojure_py in the ecosystem pypi
Then I should get 200 status code
And I should find that the gh_forks property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_month_opened property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_month_closed property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_year_opened property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_year_closed property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_month_opened property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_month_closed property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_year_opened property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_year_closed property has numeric value greater than or equal to -1
And I should find that the gh_stargazers property has numeric value greater than or equal to -1
@requires_access_to_graph_db
Scenario: Check numeric values for Libio metadata for the package from the pypi ecosystem
When I ask Gremlin to find the package clojure_py in the ecosystem pypi
Then I should get 200 status code
And I should find that the libio_dependents_projects property has numeric value greater than or equal to -1
And I should find that the libio_dependents_repos property has numeric value greater than or equal to -1
And I should find that the libio_latest_release property has numeric value greater than or equal to -1
And I should find that the libio_latest_version property is set to 0.2.4 in the package properties
And I should find that the libio_total_releases property has numeric value greater than or equal to -1
@requires_access_to_graph_db
Scenario: Check other numeric values for the package from the pypi ecosystem
When I ask Gremlin to find the package clojure_py in the ecosystem pypi
Then I should get 200 status code
And I should find that the package_dependents_count property has numeric value greater than or equal to -1
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in the npm ecosystem
Given System is running
When I ask Gremlin to find the package sequence in the ecosystem npm
Then I should get 200 status code
And I should get valid Gremlin response
And I should find that all found packages have valid timestamp with the last update time
And I should find that the ecosystem property is set to npm in the package properties
And I should find that the name property is set to sequence in the package properties
And I should find that the latest_version property is higher than or equal to 3.0.0 in the package properties
@requires_access_to_graph_db
Scenario: Check numeric values for GitHub metadata for given package in the npm ecosystem
When I ask Gremlin to find the package sequence in the ecosystem npm
Then I should get 200 status code
And I should find that the gh_forks property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_month_opened property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_month_closed property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_year_opened property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_year_closed property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_month_opened property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_month_closed property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_year_opened property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_year_closed property has numeric value greater than or equal to -1
And I should find that the gh_stargazers property has numeric value greater than or equal to -1
@requires_access_to_graph_db
Scenario: Check numeric values for Libio metadata for given package in the npm ecosystem
When I ask Gremlin to find the package sequence in the ecosystem npm
Then I should get 200 status code
And I should find that the libio_dependents_projects property has numeric value greater than or equal to -1
And I should find that the libio_dependents_repos property has numeric value greater than or equal to -1
And I should find that the libio_latest_release property has numeric value greater than or equal to -1
And I should find that the libio_latest_version property is set to 3.0.0 in the package properties
And I should find that the libio_total_releases property has numeric value greater than or equal to -1
@requires_access_to_graph_db
Scenario: Basic check for Gremlin ability to search for given package in the Maven ecosystem
Given System is running
When I ask Gremlin to find the package io.vertx:vertx-core in the ecosystem maven
Then I should get 200 status code
And I should get valid Gremlin response
And I should find that all found packages have valid timestamp with the last update time
And I should find that the ecosystem property is set to maven in the package properties
And I should find that the name property is set to io.vertx:vertx-core in the package properties
And I should find that the libio_latest_version property is higher than or equal to 3.4.2 in the package properties
@requires_access_to_graph_db
Scenario: Check numeric values for GitHub metadata for given package in the Maven ecosystem
When I ask Gremlin to find the package io.vertx:vertx-core in the ecosystem maven
Then I should get 200 status code
And I should find that the gh_forks property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_month_opened property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_month_closed property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_year_opened property has numeric value greater than or equal to -1
And I should find that the gh_issues_last_year_closed property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_month_opened property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_month_closed property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_year_opened property has numeric value greater than or equal to -1
And I should find that the gh_prs_last_year_closed property has numeric value greater than or equal to -1
And I should find that the gh_stargazers property has numeric value greater than or equal to -1
@requires_access_to_graph_db
Scenario: Check numeric values for Libio metadata for given package in the Maven ecosystem
When I ask Gremlin to find the package io.vertx:vertx-core in the ecosystem maven
Then I should get 200 status code
And I should find that the libio_dependents_projects property has numeric value greater than or equal to -1
And I should find that the libio_dependents_repos property has numeric value greater than or equal to -1
And I should find that the libio_latest_release property has numeric value greater than or equal to -1
And I should find that the libio_latest_version property is set to 3.5.1 in the package properties
And I should find that the libio_total_releases property has numeric value greater than or equal to -1