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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2417c38c75bb22753661942c5431959e224d9439
4
- data.tar.gz: de43e7bbe95039d2118d66cbbdb4b1b222efe4cb
2
+ SHA256:
3
+ metadata.gz: 6f352f47419c62cba301b61f8dae9e8eaabeb5e9ec40def22f5770f158d027f6
4
+ data.tar.gz: af84f87fe4e1cdfd58ed15f116e924d7cac299428d3b578be5c57e89ff9776f6
5
5
  SHA512:
6
- metadata.gz: 561abef16e8297daf5ae70ad37e1f6e05be302815cf0c60088b8bb486af1079d57e96f20e3cbc9d833094479e841fd59ea669da2960a25aacc67bcf2b84d6d4d
7
- data.tar.gz: 9a8ebd4089627554cb9f45ac5586c3210441b1a428ac68fbe286742e93b3cd02ba2cd4d2e1293e12d2cefc8d2970d31c64bd0668c69948a0ded5d49816825644
6
+ metadata.gz: 285d3c5aa401f083311d9aecb09e34758278cdadcaaca49ee53242a5883b2c08307e5010f64a155bc1113722671fee8d239a1e641e899e47d4d89813ae8c21a1
7
+ data.tar.gz: 8848ec793a59d57c56d6e829eb5defb58591eb90675274d8528ee10d295515726baca2452138ebbd82c625cb71c774857ab614bc697f7816b325fa2d52320b4b
data/docs/README.md CHANGED
@@ -5,3 +5,4 @@
5
5
  - [What tests can be run?](what_tests_can_be_run.md)
6
6
  - [Run Geo QA tests against your Geo GDK setup](run_geo_qa_against_gdk.md)
7
7
  - [Trainings](trainings.md)
8
+ - [Waits](waits.md)
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'
@@ -47,7 +47,7 @@ module Gitlab
47
47
  if canonical?
48
48
  "gitlab/gitlab-#{edition}"
49
49
  else
50
- release.sub(/:.+\z/, '')
50
+ release.sub(%r{(?<image_without_tag>.+(?<port>:\d+)?/.+)(?<tag>:.+)\z}, '\k<image_without_tag>')
51
51
  end
52
52
  end
53
53
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
5
5
  end
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.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-06-29 00:00:00.000000000 Z
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.5.2
187
+ rubygems_version: 2.7.7
173
188
  signing_key:
174
189
  specification_version: 4
175
190
  summary: Integration tests for GitLab