summaryrefslogtreecommitdiff
path: root/spec/support
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'browse_files.feature' spinach test with an rspec analogblackst0ne2017-07-121-0/+19
|
* Make `Redis::Wrapper#_raw_config` and `#fetch_config` more resilientRobert Speicher2017-07-111-9/+13
| | | | | | | | | These two methods now handle two additional real-world possibilities: 1. `config/resque.yml` not being present 2. `config/resque.yml` being present but not containing YAML Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/34941
* Merge branch 'rs-warm-capybara-only-in-ci' into 'master'Rémy Coutable2017-07-111-0/+1
|\ | | | | | | | | Don't attempt to warm the Capybara cache outside of CI See merge request !12761
| * Don't attempt to warm the Capybara cache outside of CIrs-warm-capybara-only-in-ciRobert Speicher2017-07-101-0/+1
| | | | | | | | | | | | | | | | | | We initially started doing this because the first feature test to use the JavaScript driver would often time out due to asset compilation on CI. We should still do it in CI since the cost is (relatively) low, but doing so for every local run is both tiresome and generally unnecessary, as developer machines will be faster than most shared CI runners, and the cost of retrying a test after a timeout is much, much lower.
* | Support multiple Redis instances based on queue typePaul Charlton2017-07-112-1/+213
|/
* Merge branch 'rs-sign_in' into 'master'Douwe Maan2017-07-093-19/+15
|\ | | | | | | | | Change gitlab_sign_in to sign_in See merge request !12369
| * Merge branch 'master' into rs-sign_inRobert Speicher2017-07-074-9/+62
| |\
| * \ Merge branch 'master' into rs-sign_inRobert Speicher2017-07-0613-18/+146
| |\ \
| * | | Remove instance variable assignment from `gitlab_sign_in` helperrs-sign_inRobert Speicher2017-06-291-4/+4
| | | | | | | | | | | | | | | | | | | | Also removes `Thread.current[:current_user]` assignment from `gitlab_sign_in_via`
| * | | Change gitlab_sign_out to sign_out where possibleRobert Speicher2017-06-291-3/+3
| | | |
| * | | Remove gitlab_sign_out_direct helperRobert Speicher2017-06-291-6/+1
| | | |
| * | | Change gitlab_sign_in to sign_in where possibleRobert Speicher2017-06-292-6/+7
| | | |
* | | | Merge branch 'master' into 'fix/gb/stage-id-reference-background-migration'Grzegorz Bizon2017-07-074-9/+62
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | # Conflicts: # app/models/concerns/each_batch.rb # spec/models/concerns/each_batch_spec.rb
| * | | Merge branch ↵Kamil Trzciński2017-07-071-2/+26
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'feature/intermediate/32568-adding-variables-to-pipelines-schedules' into 'master' Add variables to pipelines schedules Closes #32568 See merge request !12372
| | * \ \ Merge from master(Fix conflicts)Shinya Maeda2017-07-072-7/+5
| | |\ \ \
| | * \ \ \ merge from masterShinya Maeda2017-07-0710-14/+124
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | * | | | Revert unnecesarry changesShinya Maeda2017-07-051-1/+1
| | | | | |
| | * | | | zj nice catchies 3Shinya Maeda2017-07-051-1/+5
| | | | | |
| | * | | | Improved AccessMatchers and testsShinya Maeda2017-07-051-3/+23
| | | | | |
| * | | | | Native group milestonesFelipe Artur2017-07-071-0/+31
| | |_|/ / | |/| | |
| * | | | Merge branch 'gitaly-mandatory' into 'master'Sean McGivern2017-07-072-7/+5
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | Remove option to disable Gitaly in Rails See merge request !12677
| | * | | Remove option to disable Gitaly completelyJacob Vosmaer2017-07-072-7/+5
| | | | |
* | | | | Merge remote-tracking branch 'origin/active-record-each-batch' into ↵Grzegorz Bizon2017-07-072-1/+17
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix/gb/stage-id-reference-background-migration * origin/active-record-each-batch: (59 commits) Added EachBatch for iterating tables in batches Extend MR tabs a bit to cover up the avatar holder and collapse icon on scroll Update VERSION to 9.4.0-pre. Add CHANGELOG Fix some N+1 queries in the GET /projects API Don't show auxiliary blob viewer for README when there is no wiki Improve & fix the performance bar UI and behavior Remove orphaned haml files Fixed CHANGELOG.md for 9.3.4 release Add table for merge request commits 34727 Remove two columned layout from project member settings Just draw :legacy_builds Re-enable polling for environments Cleanup minor UX issues in the performance dashboard Upgrade GitLab Workhorse to v2.3.0 Added test for the chart legend Use correct field for label name, fix default for unit to be blank Fix shorter route helpers in production environment Encode certificate-authority-data in base64 Revert "Merge branch 'winh-mr-widget-no-pipeline' into 'master'" ...
| * | | | Merge branch '18000-remember-me-for-oauth-login' into 'master'Douwe Maan2017-07-062-1/+17
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Fix `migration:path` build for "Honor the 'Remember me' parameter for OAuth-based login" Closes #34713 See merge request !12668
| | * | | Fix build for !11963.Timothy Andrew2017-07-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't use `request.env['omniauth.params']` if it isn't present. - Remove the `saml` section from the `gitlab.yml` test section. Some tests depend on this section not being initially present, so it can be overridden in the test. This MR doesn't add any tests for SAML, so we didn't really need this in the first place anyway. - Clean up the test -> omniauth section of `gitlab.yml`
| | * | | Implement review comments for !11963 from @adamniedzielski.Timothy Andrew2017-07-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change double quotes to single quotes. - Why is `OmniAuth.config.full_host` being reassigned in the integration test? - Use `map` over `map!` to avoid `dup` in the `gitlab:info` rake task - Other minor changes
| | * | | Test the "Remember Me" flow for OAuth-based login.Timothy Andrew2017-07-062-1/+9
| | | | |
| | * | | Add integration tests around OAuth login.Timothy Andrew2017-07-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - There was previously a test for `saml` login in `login_spec`, but this didn't seem to be passing. A lot of things didn't seem right here, and I suspect that this test hasn't been running. I'll investigate this further. - It took almost a whole working day to figure out this line: OmniAuth.config.full_host = ->(request) { request['REQUEST_URI'].sub(request['REQUEST_PATH'], '') } As always, it's obvious in retrospect, but it took some digging to figure out tests were failing and returning 404s during the callback phase. - Test all OAuth providers - github, twitter, bitbucket, gitlab, google, and facebook
* | | | | Make `inline` a default sidekiq testing processing againGrzegorz Bizon2017-07-071-1/+1
| | | | |
* | | | | Make it possible to schedule bg migrations in bulkGrzegorz Bizon2017-07-071-1/+7
|/ / / /
* | | | Merge branch '32815--Add-Custom-CI-Config-Path' into 'master'Grzegorz Bizon2017-07-061-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Project option to allow customizing CI/CD config path" Closes #32815 and #33130 See merge request !12509
| * \ \ \ Merge commit 'a8a4ca17e444c761ed9fc5dca4542cfec79abe55' into ↵32815--Add-Custom-CI-Config-PathGrzegorz Bizon2017-07-052-17/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32815--Add-Custom-CI-Config-Path * commit 'a8a4ca17e444c761ed9fc5dca4542cfec79abe55': Remove IIFEs around several javascript classes Handles realtime with 2 states for environments table Revert "Merge branch '18000-remember-me-for-oauth-login' into 'master'" Disable Flipper memoizer in tests to avoid transient failures fix sidebar padding for full-width items (Time Tracking help) Replace 'snippets/snippets.feature' spinach with rspec 32838 Add wells to admin dashboard overview to fix spacing problems
| * | | | | Use a previous approach for cycle analytics dummy pipelineGrzegorz Bizon2017-07-051-3/+2
| | | | | |
| * | | | | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-07-055-5/+119
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32815--Add-Custom-CI-Config-Path * upstream/master: (149 commits) Revert change to design. Go back to scrollable page Fixes the column widths for the new navigation options in settings Migrate #submodule_url_for to Gitaly Add test example for external commit status retries Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rb Fix build for !12300. Log rescued exceptions to Sentry Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths Revert "Merge branch 'revert-12499' into 'master'" Prevent accidental deletion of protected MR source branch by repeating checks before actual deletion Improve the overall UX for the new monitoring dashboard Document that GitLab 9.3 requires the TRIGGER permission on MySQL Instrument Unicorn with Ruby exporter Remove group modal like remove project modal. Closes #33130 Update prometheus client gem Enables the option in user preferences to turn on the new navigation Add Jasmine tests for `OAuthRememberMe` Simplify authentication logic in the v4 users API for !12445. Use stub_application_setting when testing ApplicationHelper#support_url wait_for_requests is not needed when AJAX is not in play ...
| * | | | | | Fix cycle analytics tests by making pipeline validLin Jen-Shin2017-07-051-1/+4
| | | | | | |
| * | | | | | Follow feedback on the merge requestLin Jen-Shin2017-07-041-3/+1
| | | | | | |
| * | | | | | Give project to the dummy pipelineLin Jen-Shin2017-07-031-1/+3
| | |_|/ / / | |/| | | |
* | | | | | Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-055-8/+11
| |_|/ / / |/| | | |
* | | | | Revert "Merge branch '18000-remember-me-for-oauth-login' into 'master'"revert-6df61942Sean McGivern2017-07-052-17/+1
| |/ / / |/| | | | | | | This reverts merge request !11963
* | | | Merge branch '33580-fix-api-scoping' into 'master'Douwe Maan2017-07-052-4/+93
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix API Scoping Closes #33580 and #33022 See merge request !12300
| * \ \ \ Merge branch 'master' into '33580-fix-api-scoping'Douwe Maan2017-07-0421-25/+258
| |\ \ \ \ | | | |/ / | | |/| | | | | | | # Conflicts: # lib/api/users.rb
| * | | | Fix remaining spec failures for !12300.Timothy Andrew2017-06-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Get the spec for `lib/gitlab/auth.rb` passing. - Make the `request` argument to `AccessTokenValidationService` optional - `auth.rb` doesn't need to pass in a request. - Pass in scopes in the format `[{ name: 'api' }]` rather than `['api']`, which is what `AccessTokenValidationService` now expects. 2. Get the spec for `API::V3::Users` passing 2. Get the spec for `AccessTokenValidationService` passing
| * | | | Test OAuth token scope verification in the `API::Users` endpointTimothy Andrew2017-06-282-13/+68
| | | | |
| * | | | Test `/users` endpoints for the `read_user` scope.Timothy Andrew2017-06-282-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Test `GET` endpoints to check that the scope is allowed. - Test `POST` endpoints to check that the scope is disallowed. - Test both `v3` and `v4` endpoints.
| * | | | Initial attempt at refactoring API scope declarations.Timothy Andrew2017-06-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Declaring an endpoint's scopes in a `before` block has proved to be unreliable. For example, if we're accessing the `API::Users` endpoint - code in a `before` block in `API::API` wouldn't be able to see the scopes set in `API::Users` since the `API::API` `before` block runs first. - This commit moves these declarations to the class level, since they don't need to change once set.
* | | | | Merge branch '18000-remember-me-for-oauth-login' into 'master'Sean McGivern2017-07-052-1/+17
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | Honor the "Remember me" parameter for OAuth-based login Closes #18000 See merge request !11963
| * | | | Fix build for !11963.Timothy Andrew2017-07-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't use `request.env['omniauth.params']` if it isn't present. - Remove the `saml` section from the `gitlab.yml` test section. Some tests depend on this section not being initially present, so it can be overridden in the test. This MR doesn't add any tests for SAML, so we didn't really need this in the first place anyway. - Clean up the test -> omniauth section of `gitlab.yml`
| * | | | Implement review comments for !11963 from @adamniedzielski.Timothy Andrew2017-07-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change double quotes to single quotes. - Why is `OmniAuth.config.full_host` being reassigned in the integration test? - Use `map` over `map!` to avoid `dup` in the `gitlab:info` rake task - Other minor changes
| * | | | Test the "Remember Me" flow for OAuth-based login.Timothy Andrew2017-07-032-1/+9
| | | | |
| * | | | Add integration tests around OAuth login.Timothy Andrew2017-07-031-0/+7
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - There was previously a test for `saml` login in `login_spec`, but this didn't seem to be passing. A lot of things didn't seem right here, and I suspect that this test hasn't been running. I'll investigate this further. - It took almost a whole working day to figure out this line: OmniAuth.config.full_host = ->(request) { request['REQUEST_URI'].sub(request['REQUEST_PATH'], '') } As always, it's obvious in retrospect, but it took some digging to figure out tests were failing and returning 404s during the callback phase. - Test all OAuth providers - github, twitter, bitbucket, gitlab, google, and facebook