Commit graph

16 commits

Author SHA1 Message Date
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
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
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
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
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
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