Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
AgeCommit message (Collapse)Author
2017-11-17Use StrongMemoize and enable/disable cops properlyLin Jen-Shin
2017-11-14Raise the QA Capybara's default wait time from 4 to 10Robert Speicher
We were seeing intermittent failures on CI due to slow responses from certain endpoints.
2017-11-11Fix QA page refresh address by using absolute URLsGrzegorz Bizon
This makes QA page refresh address to be absolute URL since we dropped `Capybara.app_host`, thus there is no support for relative URLs with `visit` now.
2017-11-10Escape the password for Git callsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-11-10Change Page::Main::Entry to only visit an entrypoint and introduce ↵Rémy Coutable
Page::Main::Login to handle actual log-in Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-11-10Merge branch 'qa/gb/rspec-decouple-test-instance-address' into 'master'Rémy Coutable
Decouple QA test subject's address from Capybara/RSpec Closes gitlab-qa#88 See merge request gitlab-org/gitlab-ce!15310
2017-11-10Fix bootable scenario arguments for OptionParserGrzegorz Bizon
2017-11-10Fix Rubocop offense in QA scenario entrypointGrzegorz Bizon
2017-11-10Refactor QA specs runners and improve specsGrzegorz Bizon
2017-11-10Improve QA test scenario entrypoint specsGrzegorz Bizon
2017-11-10Configure RSpec from within RSpec runner classGrzegorz Bizon
2017-11-10Do not require to set Capybara app_host in RSpecGrzegorz Bizon
2017-11-10Fix bootable scenario arguments for OptionParserGrzegorz Bizon
2017-11-09Make it possible to define global scenario attributesGrzegorz Bizon
2017-11-08Fix test selection in Test::Integration::MattermostRichard Clamp
In ce3b81b953f we changed Test::Integration::Mattermost#perform to consume a required positional parameter and pass on the rest of the arguments to the superclass. There was an error in implementation here and instead of splatting the files array to produce no additional arguments, we passed in the default case an empty array. This had the effect of calling rspec with no test files, rather than expected default of 'qa/specs/features` Here we correct that bug, and re-add the :core suite, as that was a poor deuction in the investagtion for 74d6b8a211.
2017-11-06Fixup rspec tag misuseRichard Clamp
In !14818 we added the ability to specify the example groups that should run via the `-t` (tag) option to rspec. It was assumed that the inclusion filter generated `{:core => true, :mattermost => true}` would run examples tagged :core OR :mattermost, when instead it means :core AND :mattermost. Here in order to assure at least some tests run, we specify that the :mattermost tagged examples are the only ones we care about.
2017-10-30Add tests for mattermost login via oauthRichard Clamp
* Adds Runtime::Scenario as a place to record the properties of the Scenario we're interested in. * Adds a positional argument to Test::Integration::Mattermost to specify Runtime::Scenario.mattermost * Adds Page::Mattermost::{Main,Login} to model the mattermost pages we need to interact with. * Adds qa/features/mattermost/login_spec to perform a login via oauth and ensure we are logged in.
2017-10-25Add spec for QA::Scenario::EntrypointRichard Clamp
For added confidence, and because I plan to fiddle with some behaviours shortly, add spec testing to the newly extracted QA::Scenario::Entrypoint class.
2017-10-23Use the new buttons for creating groups and projects in QA testsBob Van Landuyt
2017-10-16Move tags out to containing featureRichard Clamp
We can currently reduce the number of times we specify the tag of a given example group by moving them hoisting them up one level to the containing `feature`
2017-10-16Cleanup a stray instance variableRichard Clamp
This was added as part of the previous filtering via RSpec::Config. It should have been removed previously as part of moving the logic to specify the tags we wanted in Specs::Runner
2017-10-16Explicitly tag :core and :mattermost scenariosRichard Clamp
It's adding additional potentially confusing behaviour to derive test tagging from the file path, as it's not immediately apparent where that lives when considering the tests in isolation. Instead, just explicitly tag. * Remove the tagging of examples based on :file_path * Explicitly tags scenarios as :core, or :mattermost
2017-10-16Move rspec cli handling logic into Specs::RunnerRichard Clamp
Here we convert Specs::Runner#rspec to use keyword arguments[1] and pass named parameters rather than a pre-processed array of cli switches. This allows parameter to cli logic to live just in Specs::Runner. [1] https://robots.thoughtbot.com/ruby-2-keyword-arguments
2017-10-13Update commentRichard Clamp
Entrypoint is intended as a base class, so mention that in the comment.
2017-10-13Simplify tag specificationRichard Clamp
As suggested by Grzegorz, we can be more declarative in our configuration of the tags the Entrypoint cares about Here we add a tags method to the entrypoint class, and use that to declare the tags an entrypoint is interested in (:core for the existing Test::Instance, :core and :mattermost for Test::Integration::Mattermost) We declare everything in specs/features that isn't in specs/features/mattermost, to have the tag :core, though that clean up better if we move the integration tests out of specs/features.
2017-10-13Fixup company nameRichard Clamp
2017-10-13Add Test::Integration::MattermostRichard Clamp
Here we add a new entrypoint for the test suite, Test::Integration::Mattermost. It is to ensure that mattermost integration is working when enabling the embedded mattermost of gitlab-omnibus It runs all the example groups from Test::Instance, in addition to any groups tagged :mattermost * Extracts a common entrypoint class from Test::Instance as Scenario::Entrypoint, and uses that as the base for Test::Instance and Test::Integration::Mattermost * RSpec groups defined in `specs/features/mattermost/**_spec.rb` are tagged with :mattermost so they can be filtered out of the default run. * Tests tagged :mattermost are filtered out by default, and are un-filtered by Test::Integration::Mattermost
2017-10-10QA group name, use hyphens rather than underscoresRichard Clamp
In doing some experimental testing of enabling the embedded mattermost we found that the currently generated QA namespace was problematic in that it used underscores when generating group names. This is invalid for a mattermost team name, underscores are illegal there. Here we change to use hyphens as they are legal in team names.
2017-10-09Merge branch 'rs-qa-sandbox-group' into 'master'Grzegorz Bizon
Make use of a `gitlab-qa-sandbox` group if available See merge request gitlab-org/gitlab-ce!14682
2017-10-09Add QA::Scenario::Gitlab::Group::CreateRobert Speicher
2017-10-06Add QA::Page::Group::New to fill in the "Create group" formRobert Speicher
2017-10-06Clean up QA::Page::Dashboard::Groups a bitRobert Speicher
2017-10-06Use autoloading instead of an explicit requireRobert Speicher
2017-10-05Implement Scenario::Gitlab::Sandbox::PrepareRobert Speicher
This better separates the concerns of preparing the sandbox namespace from creating a (sub)group.
2017-10-05Merge branch 'rs-qa-default-password' into 'master'Grzegorz Bizon
Use the default password from the GDK's root user Closes gitlab-qa#73 See merge request gitlab-org/gitlab-ce!14701
2017-10-05Use the default password from the GDK's root userRobert Speicher
[ci skip]
2017-10-05Update QA Nokogiri to 1.8.1Robert Speicher
Resolves three security advisories from bundle-audit
2017-10-04Make use of a `gitlab-qa-sandbox` group if availableRobert Speicher
This will use a top-level group if it's available, or create one if it's not, then create our `qa_test_*` groups as subgroups of the sandbox group.
2017-10-04Merge branch 'sh-gitlab-qa-add-byebug' into 'master'Grzegorz Bizon
Add byebug to GitLab QA gem list for debugging See merge request gitlab-org/gitlab-ce!14675
2017-10-04Add byebug to GitLab QA gem list for debuggingStan Hu
2017-10-04Fix GitLab QA: increase window size to ensure License link showsStan Hu
2017-10-03Make the `QA:Page::Project::Show` driver less brittleRobert Speicher
This allows the test to continue even if the GitLab instance being tested, or the user being used, had SSH access configured.
2017-09-30Merge branch 'sh-fix-gitlab-qa-admin' into 'master'Grzegorz Bizon
Fix Admin -> License selector for GitLab QA specs Closes gitlab-qa#68 See merge request gitlab-org/gitlab-ce!14599
2017-09-30Add GitLab QA documentationStan Hu
[ci skip]
2017-09-30Fix Admin -> License selector for GitLab QA specsStan Hu
Closes gitlab-qa#68
2017-09-19Fix admin area selector in GitLab QAGrzegorz Bizon
Fixes gitlab-org/gitlab-qa#66
2017-09-08Fix GitLab QA for new navigation enabled by defaultGrzegorz Bizon
2017-08-14Whitelist or fix additional `Gitlab/PublicSend` cop violationsRobert Speicher
An upcoming update to rubocop-gitlab-security added additional violations.
2017-07-21Fix new project selectors in GitLab QAGrzegorz Bizon
2017-07-10Merge branch 'fix/gb/qa/configure-headless-chrome-screenshots' into 'master'Rémy Coutable
Configure headless chrome screenshots correctly See merge request !12746