gitlab-qa 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/docs/README.md +1 -0
- data/docs/waits.md +24 -0
- data/gitlab-qa.gemspec +1 -0
- data/lib/gitlab/qa/release.rb +1 -1
- data/lib/gitlab/qa/runtime/env.rb +1 -0
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6f352f47419c62cba301b61f8dae9e8eaabeb5e9ec40def22f5770f158d027f6
|
4
|
+
data.tar.gz: af84f87fe4e1cdfd58ed15f116e924d7cac299428d3b578be5c57e89ff9776f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285d3c5aa401f083311d9aecb09e34758278cdadcaaca49ee53242a5883b2c08307e5010f64a155bc1113722671fee8d239a1e641e899e47d4d89813ae8c21a1
|
7
|
+
data.tar.gz: 8848ec793a59d57c56d6e829eb5defb58591eb90675274d8528ee10d295515726baca2452138ebbd82c625cb71c774857ab614bc697f7816b325fa2d52320b4b
|
data/docs/README.md
CHANGED
data/docs/waits.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
Waits
|
2
|
+
---
|
3
|
+
|
4
|
+
All Capybara Node Finders utilize a waiting mechanism.
|
5
|
+
|
6
|
+
Per the [Capybara API](https://www.rubydoc.info/github/jnicklas/capybara/Capybara/Node/Finders:find) -
|
7
|
+
|
8
|
+
> If the driver is capable of executing JavaScript, `find` will wait for a set amount of time and continuously retry finding the element until either the element is found or the time expires. The length of time find will wait is controlled through `Capybara.default_max_wait_time` and defaults to `2` seconds. `find` takes the same options as all.
|
9
|
+
|
10
|
+
Ideally the [GitLab QA Framework](https://gitlab.com/gitlab-org/gitlab-ce/tree/master/qa) should implement its own explicit waiting to avoid hard sleeps but currently that is [not the case](https://gitlab.com/gitlab-org/gitlab-qa/issues/280).
|
11
|
+
|
12
|
+
## Hard Sleeps
|
13
|
+
|
14
|
+
**[qa/qa/page/base.rb](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/qa/qa/page/base.rb#L16)**
|
15
|
+
|
16
|
+
```
|
17
|
+
def wait(max: 60, time: 0.1, reload: true)
|
18
|
+
...
|
19
|
+
end
|
20
|
+
```
|
21
|
+
|
22
|
+
- `max` : Specifies the max amount of *seconds* to wait until the block given is satisfied
|
23
|
+
- `time` : The interval/poll time to sleep *in seconds*. If this time reaches `max`, the wait returns `false`
|
24
|
+
- `reload` : If the wait is not satiated, the test will sleep then reload the page if `:reload` is set to `true`
|
data/gitlab-qa.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
# Some dependencies are pinned, to prevent new cops from breaking the CI pipelines
|
22
|
+
spec.add_development_dependency 'climate_control', '~> 0.2'
|
22
23
|
spec.add_development_dependency 'gitlab-styles', '2.2.0'
|
23
24
|
spec.add_development_dependency 'pry', '~> 0.11'
|
24
25
|
spec.add_development_dependency 'rake', '~> 12.2'
|
data/lib/gitlab/qa/release.rb
CHANGED
@@ -12,6 +12,7 @@ module Gitlab
|
|
12
12
|
'GITLAB_USER_TYPE' => :user_type,
|
13
13
|
'GITLAB_SANDBOX_NAME' => :gitlab_sandbox_name,
|
14
14
|
'GITLAB_QA_ACCESS_TOKEN' => :qa_access_token,
|
15
|
+
'GITHUB_ACCESS_TOKEN' => :github_access_token,
|
15
16
|
'GITLAB_URL' => :gitlab_url,
|
16
17
|
'EE_LICENSE' => :ee_license
|
17
18
|
}.freeze
|
data/lib/gitlab/qa/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-qa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grzegorz Bizon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: climate_control
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.2'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.2'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: gitlab-styles
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,6 +135,7 @@ files:
|
|
121
135
|
- docs/how_it_works.md
|
122
136
|
- docs/run_geo_qa_against_gdk.md
|
123
137
|
- docs/trainings.md
|
138
|
+
- docs/waits.md
|
124
139
|
- docs/what_tests_can_be_run.md
|
125
140
|
- exe/gitlab-qa
|
126
141
|
- fixtures/ldap/tanuki.ldif
|
@@ -169,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
184
|
version: '0'
|
170
185
|
requirements: []
|
171
186
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
187
|
+
rubygems_version: 2.7.7
|
173
188
|
signing_key:
|
174
189
|
specification_version: 4
|
175
190
|
summary: Integration tests for GitLab
|