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 +4 -4
- data/README.md +38 -2
- data/lib/gitlab/qa/scenario/test/instance/image.rb +1 -1
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8097807f4d1b16c09a377ae8cee10c9bf458d041
|
4
|
+
data.tar.gz: 8833864a7c92cf584bd413b505100e8032b2e7bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/gitlab/qa/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|