summaryrefslogtreecommitdiff
path: root/spec/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'refactor_gitlab_kube_client' into 'master'Kamil Trzciński2018-10-251-95/+18
|\ | | | | | | | | | | | | Refactor Gitlab::KubeClient Closes #52131 See merge request gitlab-org/gitlab-ce!22073
| * Store version within SUPPORTED_API_GROUPS hashrefactor_gitlab_kube_clientThong Kuah2018-10-231-27/+1
| | | | | | | | | | | | This removes the ability to pass in a different version. We can instead create a new entry in the SUPPORTED_API_GROUPS hash for a different version if need be.
| * Remove api_groups from KubeClient constructorThong Kuah2018-10-231-90/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | We should have access to #core_client, #rbac_client, and #extensions_client without having to pass in an awkward array. Also change api_version to default_api_version, which allows us to use a different version for an individual client. Special case for apis/extensions which only go up to v1beta1 Makes #hashed_client private Removes the #clients and #discover! methods which are un-used
* | Merge branch 'support-license-management-and-performance' into 'master'Grzegorz Bizon2018-10-231-0/+2
|\ \ | | | | | | | | | | | | Support licenses and performance See merge request gitlab-org/gitlab-ce!22175
| * | Support licenses and performancesupport-license-management-and-performanceKamil Trzciński2018-10-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces a new syntax for all licenses and performance jobs: ```yaml job: reports: performance: performance.json license_management: gl-license-management-report.json ```
* | | Merge branch 'lfs-project-attribute-alias' into 'master'Nick Thomas2018-10-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Alias the lfs_enabled method Closes #49348 See merge request gitlab-org/gitlab-ce!22501
| * | | Alias the lfs_enabled methodlfs-project-attribute-aliasCindy Pallares2018-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently check for `project.lfs_enabled` to display the state of lfs being enabled/disabled, but this is set to nil by default, even when lfs is enabled. Aliasing the method to #lfs_enabled? will return the correct state.
* | | | Merge branch 'add-role-binding-to-kubeclient' into 'master'Kamil Trzciński2018-10-231-0/+47
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add RoleBinding method and class See merge request gitlab-org/gitlab-ce!22524
| * | | | Add RoleBinding methodsadd-role-binding-to-kubeclientMayra Cabrera2018-10-221-0/+47
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Includes RoleBinding methods to Kubeclient and introduce a new lib class to generate RoleBinding resources. This MR is part of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22011
* | | | Remove broken git storage for testingZeger-Jan van de Weg2018-10-231-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broken storage used to be used to test situations where the Git storage wasn't being reached. These days we can just mock the Gitaly response. But given the broken storage is removed now, Gitaly can take over control of the storage being reachable. If it's not, Gitaly won't boot. That's nice for situations where a disk wasn't mounted for instance. Gitaly MR: https://gitlab.com/gitlab-org/gitaly/merge_requests/675
* | | | Merge branch 'sh-pages-eof-error' into 'master'Grzegorz Bizon2018-10-231-0/+30
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Fix EOF detection with CI artifacts metadata Closes #36954 See merge request gitlab-org/gitlab-ce!22479
| * | | Add a spec that generates the metadata dynamicallysh-pages-eof-errorStan Hu2018-10-191-0/+30
| | | |
* | | | Merge branch 'feature/gb/improve-include-config-errors-reporting' into 'master'Douwe Maan2018-10-226-23/+126
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Improve validation errors for external CI/CD configuration Closes #51369 See merge request gitlab-org/gitlab-ce!22394
| * | | Improve specs for abstract remote `include` filefeature/gb/improve-include-config-errors-reportingGrzegorz Bizon2018-10-221-4/+4
| | | |
| * | | Improve error message when `include` is blockedGrzegorz Bizon2018-10-221-0/+9
| | | |
| * | | Improve remote CI/CD config file extension validationGrzegorz Bizon2018-10-191-0/+52
| | | |
| * | | Extend error message in case of HTTP errors in `include`Grzegorz Bizon2018-10-191-3/+37
| | | |
| * | | Refactor `include` code and improve error reportingGrzegorz Bizon2018-10-184-6/+9
| | | |
| * | | Extract method that fetchesremote CI/CD included configGrzegorz Bizon2018-10-181-2/+2
| | | |
| * | | Add IncludeError exception and use it in CI configGrzegorz Bizon2018-10-181-1/+1
| | | |
| * | | Move external CI config class into proper namespaceGrzegorz Bizon2018-10-165-12/+17
| | | |
| * | | Move external CI config files into Ci class contextGrzegorz Bizon2018-10-164-0/+0
| | | |
* | | | Merge branch 'ce-52112-fix-review-apps-cleanup-ce' into 'master'Nick Thomas2018-10-222-41/+98
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Improve HelmClient and KubernetesClient See merge request gitlab-org/gitlab-ce!22375
| * | | | Improve automated Review Apps cleanupce-52112-fix-review-apps-cleanup-ceRémy Coutable2018-10-222-41/+98
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | | Merge branch 'drop-allow_overflow-option-duration_in_numbers' into 'master'Grzegorz Bizon2018-10-221-2/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | Drop allow overflow option duration in numbers Closes #52284 See merge request gitlab-org/gitlab-ce!22246
| * | | | Fix specdrop-allow_overflow-option-duration_in_numbersShinya Maeda2018-10-181-2/+2
| | |_|/ | |/| |
* | | | Merge branch 'use-raw-file-format' into 'master'Grzegorz Bizon2018-10-222-1/+48
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Add RAW file format which is used to store security reports Closes gitlab-ee#7996 See merge request gitlab-org/gitlab-ce!22365
| * | | Make all legacy security reports to use raw formatuse-raw-file-formatKamil Trzciński2018-10-162-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This introduces and uses `:raw` format for all legacy reports, the ones that do not have yet proper parsers on Backend - Raw format is needed to make Frontend be able to parse reports, without the need of decompressing, - This also extends fixtures to seed security reports with database, even though parser code is part of EE
* | | | Rename "scheduled" label/badge of delayed jobs to "delayed"Shinya Maeda2018-10-194-6/+6
| | | |
* | | | Merge branch 'bvl-remove-forked-project-link' into 'master'Sean McGivern2018-10-191-2/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove ForkedProjectLink model Closes #38883 See merge request gitlab-org/gitlab-ce!22226
| * | | | Remove the `ForkedProjectLink` modelBob Van Landuyt2018-10-191-2/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the `ForkedProjectLink` model that has been replaced by the `ForkNetworkMember` and `ForkNetwork` combination. All existing relations have been adjusted to use these new models. The `forked_project_link` table has been dropped. The "Forks" count on the admin dashboard has been updated to count all `ForkNetworkMember` rows and deduct the number of `ForkNetwork` rows. This is because now the "root-project" of a fork network also has a `ForkNetworkMember` row. This count could become inaccurate when the root of a fork network is deleted.
* | | | Catch `RedirectionTooDeep` Exception in webhooksHeinrich Lee Yu2018-10-191-0/+26
| |/ / |/| |
* | | Merge branch '44361-remove-gitlab-grit' into 'master'Rémy Coutable2018-10-171-4/+43
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove gitlab-grit as a transitive dependency of GitLab Closes #44361 See merge request gitlab-org/gitlab-ce!22373
| * | | Remove a dependency on gitlab-gollum-libnick.thomas/gitlab-ce-44361-remove-gitlab-gritNick Thomas2018-10-161-4/+43
| | |/ | |/| | | | | | | | | | | | | Inlining this code allows us to remove a dependency on gitlab_grit in gitlab-ce. We can't stop maintaining gitlab_grit yet, since gitaly-ruby still depends on this gem, but it moves us a step closer.
* | | Merge branch '52650-webhook-image-urls-rewritten-incorrectly-in-issues' into ↵Douwe Maan2018-10-163-49/+92
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Resolve "Webhook Image URLs Rewritten Incorrectly in Issues" Closes #52650 See merge request gitlab-org/gitlab-ce!22361
| * | | Fix image webhook rewriting for uploadsSean McGivern2018-10-163-49/+92
| | |/ | |/| | | | | | | | | | | | | | | | This rewrote URLs to be absolute URLs. However, for uploads (the most common case), we actually need them to point to not just the GitLab instance, but the project they're from. Thankfully, we can normally get that information from the object we're building the hook for.
* | | Merge branch 'test-usage-ping-in-timeout-case' into 'master'Robert Speicher2018-10-161-0/+7
|\ \ \ | |_|/ |/| | | | | | | | Verify that usage ping works when all counts time out See merge request gitlab-org/gitlab-ce!22358
| * | Verify that usage ping works when all counts time outSean McGivern2018-10-161-0/+7
| |/
* | Does not allow an import_url with SSH protocolDouglas Barbosa Alexandre2018-10-151-2/+2
| |
* | Merge branch 'sh-remove-koding' into 'master'Douwe Maan2018-10-151-4/+0
|\ \ | | | | | | | | | | | | | | | | | | Remove Koding integration and documentation Closes #39697 See merge request gitlab-org/gitlab-ce!22334
| * | Remove Koding integration and documentationStan Hu2018-10-121-4/+0
| | | | | | | | | | | | | | | | | | This integration no longer works and does not appear to be supported. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39697
* | | Merge branch 'zj-remove-linguist' into 'master'Robert Speicher2018-10-154-24/+147
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Remove dependencies on Linguist Closes #35450 See merge request gitlab-org/gitlab-ce!21008
| * | Remove dependencies on LinguistZeger-Jan van de Weg2018-10-124-24/+147
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves about 128 MB of baseline RAM usage per Unicorn and Sidekiq process (!). Linguist wasn't detecting languages anymore from CE/EE since 9ae8b57467ac8b38f1fa9020a466d94a93cbb9dd. However, Linguist::BlobHelper was still being depended on by BlobLike and others. This removes the Linguist gem, given it isn't required anymore. EscapeUtils were pulled in as dependency, but given Banzai depends on it, it is now added explicitly. Previously, Linguist was used to detect the best ACE mode. Instead, we rely on ACE to guess the best mode based on the file extension.
* | Merge branch 'improve-spec-for-gitlab-ci-status-pipeline-factory' into 'master'Grzegorz Bizon2018-10-151-19/+49
|\ \ | |/ |/| | | | | | | | | Improve spec for Gitlab::Ci::Status::Pipeline::Factory Closes #52280 See merge request gitlab-org/gitlab-ce!22247
| * Improve spec for Gitlab::Ci::Status::Pipeline::FactoryShinya Maeda2018-10-101-19/+49
| |
* | Merge branch 'frontend-feature-flags' into 'master'Rémy Coutable2018-10-111-0/+32
|\ \ | | | | | | | | | | | | | | | | | | Support pushing of feature flags to the frontend Closes gitlab-org/release/framework#17 See merge request gitlab-org/gitlab-ce!22197
| * | Support pushing of feature flags to the frontendYorick Peterse2018-10-111-0/+32
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a method to Gitlab::GonHelper called `push_frontend_feature_flag`. This method can be used to easily expose the state of a feature flag to Javascript code. For example, using this method we may write the following controller code: before_action do push_frontend_feature_flag(:vim_bindings) end def index # ... end def edit # ... end In Javascript we can then check the state of the flag as follows: if ( gon.features.vimBindings ) { // ... } Fixes https://gitlab.com/gitlab-org/release/framework/issues/17
* | Remove Git circuit breakerZeger-Jan van de Weg2018-10-1011-751/+0
|/ | | | | | | Was introduced in the time that GitLab still used NFS, which is not required anymore in most cases. By removing this, the API it calls will return empty responses. This interface has to be removed in the next major release, expected to be 12.0.
* Rails 5: fix mysql milliseconds problems in scheduled build specsJasper Maes2018-10-061-1/+1
|
* Merge branch 'scheduled-manual-jobs' into 'master'Kamil Trzciński2018-10-0511-30/+380
|\ | | | | | | | | | | | | Delayed jobs Closes #51352 See merge request gitlab-org/gitlab-ce!21767