gitlab-qa 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: bb5796aeaa95713a634a57f5f2a3975925f5c650
4
- data.tar.gz: f3741401f66e6fa5c721fb0267d9f81363ea9111
3
+ metadata.gz: 8097807f4d1b16c09a377ae8cee10c9bf458d041
4
+ data.tar.gz: 8833864a7c92cf584bd413b505100e8032b2e7bb
5
5
  SHA512:
6
- metadata.gz: adf3181a32f706baf8bcfc3867eb3147eea9d9b3e173687f00586d9e32d2610b1ccc90e5e62889b4ddec824b40e6a7423691772ad68d199a848560001023f78a
7
- data.tar.gz: 35a214fa0a4797dd4cc14750aae925d63c75ddb02cdba19f2c118d147fa32abc4f27cf21521fa0ad3a721c892fffd83fdea7ec49e8d33f278704e1f4996f39cf
6
+ metadata.gz: b83456d9d1321d56b823ec39043555230d5dae561333b5fe5c23e43dfe498747fbeffa784e3e16849f611c8ceae63a539bc5a9acb41ee066318a403d3cadb5e9
7
+ data.tar.gz: 28eeb29cbc82b311ef0a262913cd49b0db5832daf012d11c6204f2af8487ab3f4c5c8fa58e8ede38fc905747b783ee0d19850043e1a099d1de7299a82b0474c8
data/README.md CHANGED
@@ -23,16 +23,52 @@ command in your system.
23
23
 
24
24
  1. Run tests against a Docker image with GitLab:
25
25
 
26
- `gitlab-qa Test::Instance::Image CE|EE`
26
+ `gitlab-qa Test::Instance::Image CE|EE|<full image address>`
27
27
 
28
28
  1. Test upgrade process:
29
29
 
30
- `gitlab-qa Test::Omnibus::Upgrade CE|EE`
30
+ `gitlab-qa Test::Omnibus::Upgrade CE|EE|<full image address>`
31
31
 
32
32
  1. Run tests against any existing instance:
33
33
 
34
34
  `gitlab-qa Test::Instance::Any CE|EE nightly|latest http://your.instance.gitlab`
35
35
 
36
+ ## How does it work?
37
+
38
+ GitLab QA handles a few scenarios:
39
+
40
+ ### `Test::Omnibus::Image CE|EE|<full image address>`
41
+
42
+ This scenario only tests that a GitLab Docker container can be run.
43
+
44
+ This spins up a GitLab Docker container based on the given edition or image:
45
+ - `gitlab/gitlab-ce:nightly` for `CE`
46
+ - `gitlab/gitlab-ee:nightly` for `EE`
47
+ - the given custom image for `<full image address>`
48
+
49
+ ### `Test::Omnibus::Upgrade CE|EE|<full image address>`
50
+
51
+ This scenario tests that:
52
+
53
+ - the GitLab Docker container works as expected by running tests against it (see
54
+ `Test::Instance::Image` below)
55
+ - that it can be upgraded to a new (`nightly` or custom image) container
56
+ - that the new GitLab container still works as expected
57
+
58
+ ### `Test::Instance::Image CE|EE|<full image address>`
59
+
60
+ This scenario tests that the GitLab Docker container works as expected by
61
+ running tests against it.
62
+
63
+ To run tests against the GitLab containers, a GitLab QA (`gitlab/gitlab-qa`)
64
+ container is spin up and tests are run from it by running the `Test::Instance`
65
+ scenario (located under `qa/scenario/test/instance` in the GitLab codebase).
66
+
67
+ ### `Test::Instance::Any CE|EE|<full image address>`
68
+
69
+ This scenario tests that the any GitLab instance works as expected by running
70
+ tests against it (see `Test::Instance::Image` below).
71
+
36
72
  ## Supported environment variables
37
73
 
38
74
  * `GITLAB_USERNAME` - username to use when signing in to GitLab
@@ -17,7 +17,7 @@ module Gitlab
17
17
  gitlab.release = release
18
18
  gitlab.name = "gitlab-qa-#{gitlab.release.edition}"
19
19
  gitlab.image = gitlab.release.image
20
- gitlab.tag = gitlab.release.tag
20
+ gitlab.tag = @tag || gitlab.release.tag
21
21
  gitlab.volumes = @volumes
22
22
  gitlab.network = 'test'
23
23
 
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.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: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Bizon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-29 00:00:00.000000000 Z
11
+ date: 2017-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler