Commit Graph

48 Commits

Author SHA1 Message Date
GitLab Bot 2db9c1eee2 Add latest changes from gitlab-org/gitlab@master 2021-04-01 06:09:29 +00:00
GitLab Bot b90d8b54a4 Add latest changes from gitlab-org/gitlab@master 2021-03-09 12:08:52 +00:00
GitLab Bot 447a64b1dc Add latest changes from gitlab-org/gitlab@master 2020-10-12 00:08:43 +00:00
GitLab Bot 1d42c38d9b Add latest changes from gitlab-org/gitlab@master 2020-09-28 06:09:56 +00:00
GitLab Bot c916c6f79b Add latest changes from gitlab-org/gitlab@master 2020-09-25 03:09:30 +00:00
GitLab Bot a7f1e2ebd6 Add latest changes from gitlab-org/gitlab@master 2020-09-14 06:09:28 +00:00
GitLab Bot 2b349d9a94 Add latest changes from gitlab-org/gitlab@master 2020-08-25 18:10:49 +00:00
GitLab Bot d9aac35d79 Add latest changes from gitlab-org/gitlab@master 2020-07-13 18:09:16 +00:00
GitLab Bot b0107e8756 Add latest changes from gitlab-org/gitlab@master 2020-07-02 12:09:02 +00:00
GitLab Bot 72b4a0c010 Add latest changes from gitlab-org/gitlab@master 2020-06-01 03:07:59 +00:00
GitLab Bot 7915c41e42 Add latest changes from gitlab-org/gitlab@master 2020-04-06 21:09:19 +00:00
GitLab Bot 2711c26bea Add latest changes from gitlab-org/gitlab@master 2020-03-24 00:09:24 +00:00
GitLab Bot 898e2cc1df Add latest changes from gitlab-org/gitlab@master 2019-12-20 09:24:38 +00:00
GitLab Bot b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Rémy Coutable d8f9890009
Reduce the CE/EE diff under qa/
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-08-14 10:22:25 +02:00
Grant Young eecd85d461 First pass at new automated QA API test for #52703
Checks that archives of two different user projects with the same name aren't the same via checksum.  I.E. a user can't download the archive of another's project by mistake.

To enable the test some enhancements were made.  Namely updating the client module to handle more than one API instance and the creation a custom rest call method that downloads to tmp.
2019-07-01 06:01:44 +00:00
Mark Lapierre cfe0043d54 Test push limit with admin user
Uses `:requires_admin` metadata to specify that a test needs
an admin user.

Sets the push file size limit test to require an admin user.

With an admin access token set as the env var
GITLAB_QA_ADMIN_ACCESS_TOKEN, the push size
limit test now only uses the API and CLI
2019-06-18 03:37:05 +00:00
Mark Lapierre 3922c6da84 Generate knapsack report for review-qa-all
Add knapsack qa report and use it to run tests in parallel

Use the RSpec runner with knapsack

The way the Knapsack runner uses exec to start rspec seems
incompatible with the way we expect it to work. Plus, it requires
specifying KNAPSACK_TEST_DIR.

Instead, we use knapsacks AllocatorBuilder to select the spec
files to run, and then start rspec as normal, via
RSpec::Core::Runner.run

This also means we can incorporate tags.

Let the job run automatically

Include KNAPSACK_TEST_FILE_PATTERN in vars

Check all defined knapsack env vars before requiring knapsack
2019-06-03 10:37:43 +00:00
Thong Kuah 0be52bf32f Add frozen_string_literal to qa/
This will be default in Ruby 3, so will be good to apply in QA ahead of
time to be consistent.
2019-04-13 00:45:38 +12:00
Mark Lapierre 35c5557685 Allow token env var from gitlab-qa
gitlab-qa accepts an env var named GITLAB_QA_ACCESS_TOKEN, but here we
only accepted PERSONAL_ACCESS_TOKEN.

This change replaces PERSONAL_ACCESS_TOKEN with GITLAB_QA_ACCESS_TOKEN
2019-03-28 08:15:14 +00:00
Mark Lapierre 67c38a6573 Set feature flag via command line
First attempt at allowing a feature flag to be set via the command line
when running tests. This will enable the flag, run the tests, and then
disable the flag.

Using OptionParser meant changing how scenarios get the instance
address, so this also allows the address to be set as a command line
option. It's backwards compatible (you can still provide the address
as the command line option after the scenario)
2019-03-27 19:03:03 +00:00
Mark Lapierre 97265d39e7 [CE] Improve `wait_for_push` 2019-02-11 09:04:59 +00:00
ddavison 7f780046c4 Add specs to remote grid. Raise errors for #remote_grid_credentials
Signed-off-by: ddavison <ddavison@gitlab.com>
2019-01-09 12:02:56 +05:00
Mark Lapierre 765ca40d65 Add e2e test of push over SSH over Git protocol v2
Adds a new end-to-end test to check that Git protocol v2 can be used to
push over SSH.

Includes a change in Git::Repository to use Runtime::Env.debug? to
enable logging instead of .verbose?
2018-11-07 12:16:17 -05:00
Mark Lapierre a85c8e346f Re-enable debug logging of Git commands and output 2018-10-25 15:21:21 -04:00
Mark Lapierre 45860bc807 Log page actions
Override page object methods to log the actions taken by the methods
before or after the action, as appropriate.

Allow page object action logging to be turned on via a QA_DEBUG env var.
Unlike CHROME_HEADLESS (and the soon to arrive VERBOSE), QA_DEBUG
is false by default.

QA_DEBUG is used instead of just DEBUG because that enables Selenium
debug logging.

Mask passwords entered into fields with a QA selector with 'password'
in the name. Doesn't mask sensitive data entered into any other field.
2018-10-19 18:32:33 -04:00
Rémy Coutable b6f2f738c7 First iteration to allow creating QA resources using the API 2018-10-17 18:08:20 +00:00
Mark Lapierre 03ee488f93 Allow the registration e2e test to be skipped
If SIGNUP_DISABLED is true skip any tests with a context
:skip_signup_disabled. The context is set for the registration tests.
This allows the tests to be skipped when run on the staging, which
doesn't allow registration
2018-10-08 15:04:08 -04:00
Mark Lapierre 28e80dbcc5 Enable signing in as admin when adding a license
Adds the ability to use admin credentials to add a license so that when
testing an LDAP user on EE the LDAP user does not have to be an admin.

Admin credentials default to GDK's root user. Can be overriden via
ADMIN_USERNAME and ADMIN_PASSWORD environment variables.
2018-09-10 18:43:34 -04:00
Rémy Coutable 520fcaab1c
Allow to pass --tag to bin/qa run
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-28 16:32:59 +02:00
Rémy Coutable 98ba19b5f2
[QA] Improve the fork scenario to take a username and password instead of always creating a new user
Fixes https://gitlab.com/gitlab-org/quality/staging/issues/2.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-20 10:52:24 +02:00
Rémy Coutable 2ad990bba0 [QA] Add a new scenario to test GitHub import
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-06 14:22:00 +02:00
Rémy Coutable 9e5841a0ae
Improve the Runtime::API classes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-06-06 20:12:29 +02:00
Francisco Javier López 4d3f7ae1ef
Removed API endpoint and specs 2018-05-30 18:23:07 +02:00
Lin Jen-Shin f718ccf202 It's actually raising QA::Service::Shellout::CommandError 2018-04-20 23:29:05 +08:00
Lin Jen-Shin 187711c1b0 Remove test against DSA ssh keys because
we're not really supporting them out of the box. See:
https://gitlab.com/gitlab-org/gitlab-ce/issues/44363
2018-03-29 19:40:32 +08:00
Lin Jen-Shin 211b2f390c Implement other ssh keys and use ssh-keygen instead 2018-03-29 19:40:32 +08:00
Lin Jen-Shin 9a538b9eeb Introduce Key namespace so we could put more keys 2018-03-29 19:40:32 +08:00
Stan Hu dc8cf73207 GitLab QA: Add GITLAB_USER_TYPE to support different login types (e.g. standard, LDAP)
GITLAB_USERNAME and GITLAB_PASSWORD may be specified for an LDAP login, but QA
scenarios may need to know which type it is in order to log in successfully.
2018-02-11 05:59:33 -08:00
Takuya Noguchi 2b6307f6ad Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
Lin Jen-Shin a17f4c23b7 Add an test for QA::Runtime::RSAKey 2018-01-24 23:31:44 +08:00
Brett Walker b8b9e9eb8e Add ability to drive the API in QA specs 2018-01-23 10:23:23 +00:00
Brett Walker 6762d2875e Resolve "Allow QA tests to run with `CHROME_HEADLESS=false`" 2018-01-08 12:44:32 +00:00
Grzegorz Bizon 7710364667 Make it possible to define global scenario attributes 2017-11-09 11:53:57 +00:00
Grzegorz Bizon 0731365b9d Add GitLab QA CE strategy and simplify inflector 2017-03-13 13:54:33 +01:00
Grzegorz Bizon 0778cad285 Do not use GITLAB_RELEASE env to define QA strategy
[ci skip]
2017-03-13 11:23:59 +01:00
Grzegorz Bizon 175a3dfda0 Fix GitLab QA release inflector strategy 2017-03-09 15:10:41 +01:00
Grzegorz Bizon 5becdf0194 Implement GitLab QA release inflection strategy 2017-03-09 12:18:55 +01:00