gitlab-qa 2.8.0 → 2.8.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
2
  SHA256:
3
- metadata.gz: 10cf0ac3fcf95c6576b31b1c1fb0947b6a2f9eb5bb1bfc78281e4375001ecdc4
4
- data.tar.gz: 2ed071bfb04c06a6004c1669e981aeb3f3673b1512fde01bf31dadb94a794d0d
3
+ metadata.gz: 488b13f4d68a6b9b73ae205a88b71b29f785347a27d3e4ff2d2de1f1b68cdaa1
4
+ data.tar.gz: f2ca9a979e8036508f916db891311538844b8c3a17e371c30a153eccc32ce9d0
5
5
  SHA512:
6
- metadata.gz: 597b819e4181911f326165fe5e6e26ded947992e55dbc994cd4568172ba4f9102011fdb7b238f74c4a1a92ee4189658a8d32ccfa98bb9ea944a9cddbc54a8757
7
- data.tar.gz: a05d29929286348904d2c12c2d247bf19c2654cb0598512e4ce7b7ba8eb145d2a939fd1a055b63af79060f58f1c0b5ba901a202d65b7d650c8ea24baf59236c3
6
+ metadata.gz: 0e975889e7403b30cda178d6898841623ccfbd82feaab52f8db6294167282b4a5a74fa2e1f7c6506c769b67f48774f08587c345422c3ce547568a52a91d629df
7
+ data.tar.gz: 93f82c058ea90d9c2c9a9bef2f6aaf10013a3617d50ddac2cbeee8a25b5e161f9b7f61207a00ecde6723e32cec6ddfa213e67dbd4a753b9827b72b0426faf333
data/.gitignore CHANGED
@@ -8,3 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /.idea
11
+
12
+ # ignore built gems
13
+ *.gem
@@ -32,6 +32,10 @@ For more details on the internals, please read the
32
32
  * `GITLAB_PASSWORD` - password to use when signing into GitLab
33
33
  * `GITLAB_FORKER_USERNAME` - username to use for forking a project
34
34
  * `GITLAB_FORKER_PASSWORD` - password to use for forking a project
35
+ * `GITLAB_QA_USERNAME_1` - username available in environments where signup is disabled
36
+ * `GITLAB_QA_PASSWORD_1` - password for `GITLAB_QA_USERNAME_1` available in environments where signup is disabled (e.g. staging.gitlab.com)
37
+ * `GITLAB_QA_USERNAME_2` - another username available in environments where signup is disabled
38
+ * `GITLAB_QA_PASSWORD_2` - password for `GITLAB_QA_USERNAME_2` available in environments where signup is disabled (e.g. staging.gitlab.com)
35
39
  * `GITLAB_LDAP_USERNAME` - LDAP username to use when signing into GitLab
36
40
  * `GITLAB_LDAP_PASSWORD` - LDAP password to use when signing into GitLab
37
41
  * `GITLAB_ADMIN_USERNAME` - Admin username to use when adding a license
@@ -2,6 +2,7 @@ require 'securerandom'
2
2
  require 'net/http'
3
3
  require 'uri'
4
4
  require 'forwardable'
5
+ require 'openssl'
5
6
 
6
7
  module Gitlab
7
8
  module QA
@@ -68,19 +69,19 @@ module Gitlab
68
69
  end
69
70
 
70
71
  def instance
71
- raise 'Please provide a block!' unless block_given?
72
-
73
72
  prepare
74
73
  start
75
74
  reconfigure
76
75
  wait
77
76
  process_exec_commands
78
77
 
79
- yield self
78
+ yield self if block_given?
80
79
  ensure
81
80
  teardown
82
81
  end
83
82
 
83
+ alias_method :launch_and_teardown_instance, :instance
84
+
84
85
  def prepare
85
86
  @docker.pull(image, tag)
86
87
 
@@ -12,9 +12,11 @@ module Gitlab
12
12
  current_release = Release.new(to_release || from_release)
13
13
 
14
14
  Docker::Volumes.new.with_temporary_volumes do |volumes|
15
- Scenario::Test::Instance::Image
16
- .perform(previous_release) do |scenario|
17
- scenario.volumes = volumes
15
+ Component::Gitlab.perform do |gitlab|
16
+ gitlab.release = previous_release
17
+ gitlab.volumes = volumes
18
+ gitlab.network = 'test'
19
+ gitlab.launch_and_teardown_instance
18
20
  end
19
21
 
20
22
  Scenario::Test::Instance::Image
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '2.8.0'.freeze
3
+ VERSION = '2.8.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.8.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-13 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubyforge_project:
207
- rubygems_version: 2.7.7
207
+ rubygems_version: 2.7.6
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Integration tests for GitLab