Commit Graph

25 Commits

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