summaryrefslogtreecommitdiff
path: root/spec/tasks
Commit message (Collapse)AuthorAgeFilesLines
* CI runs lint on shell scripts in lib/supportjej-lint-scripts-and-configJames Edwards-Jones2017-02-071-0/+27
|
* Merge branch 'master' into jej-pages-picked-from-eeJames Edwards-Jones2017-02-031-1/+1
|\
| * Active tense test coveragejej-backport-active-tense-specsValery Sizov2017-02-011-1/+1
| | | | | | | | Ports changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642 back into CE
* | Add GitLab PagesKamil Trzcinski2017-01-311-5/+9
|/ | | | | | | | | | | | | | | | - The pages are created when build artifacts for `pages` job are uploaded - Pages serve the content under: http://group.pages.domain.com/project - Pages can be used to serve the group page, special project named as host: group.pages.domain.com - User can provide own 403 and 404 error pages by creating 403.html and 404.html in group page project - Pages can be explicitly removed from the project by clicking Remove Pages in Project Settings - The size of pages is limited by Application Setting: max pages size, which limits the maximum size of unpacked archive (default: 100MB) - The public/ is extracted from artifacts and content is served as static pages - Pages asynchronous worker use `dd` to limit the unpacked tar size - Pages needs to be explicitly enabled and domain needs to be specified in gitlab.yml - Pages are part of backups - Pages notify the deployment status using Commit Status API - Pages use a new sidekiq queue: pages - Pages use a separate nginx config which needs to be explicitly added
* Restore backup correctly when "BACKUP" environment variable is passedrestore-backup-when-env-variable-is-passedAdam Niedzielski2017-01-091-1/+1
|
* Add LDAP task to rename a providerDrew Blessing2016-12-161-0/+13
| | | | | | | | Sometimes admins will change the LDAP configuration, not realizing that problems will occur if the user's LDAP identities are not also updated to use the new provider name. This task will give admins a single command to run to update identities and will prevent having to run multiple Rails console queries.
* Don't allow to specify a repo or version when installing Workhorseremove-gitlab-workhorse-version-option-from-install-taskRémy Coutable2016-12-011-26/+0
| | | | | | The task will use the canonical repo and the required version. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '23718/backup-rake-task-human-readable' into 'master' Douwe Maan2016-12-011-0/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 23718/backup rake task human readable ## What does this MR do? Add the human readable format to the backup tar file. From `1477317140_gitlab_backup.tar` to `1477317140_2016_10_24_gitlab_backup.tar`. ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? #23718 issue ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? 23718 See merge request !7188
| * Add Human Readable Timestamp to backup tar fileDavid Gerő2016-11-301-0/+31
| |
* | Move task helpers to a module22719-provide-a-new-gitlab-workhorse-install-rake-task-similar-to-gitlab-shell-installRémy Coutable2016-11-305-56/+55
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add #run_command! to task helpers to raise a TaskFailedError if status is not 0Rémy Coutable2016-11-302-15/+15
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | New `gitlab:workhorse:install` rake taskRémy Coutable2016-11-302-0/+204
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce better credential and error checking to `rake gitlab:ldap:check`Drew Blessing2016-11-081-0/+51
| | | | | | | It was previously possible for invalid credential errors to go unnoticed in this task. Users would believe everything was configured correctly and then sign in would fail with 'invalid credentials'. This adds a specific bind check, plus catches errors connecting to the server. Also, specs :)
* Add Rake task to create/repair GitLab Shell hooks symlinksDrew Blessing2016-11-011-0/+26
|
* Backups do not fail anymore when using tar on annex and custom_hookstiagonbotelho2016-10-271-1/+73
| | | | only.
* fixes build with cache:clear issuetiagonbotelho2016-10-241-0/+1
|
* Add a new gitlab:users:clear_all_authentication_tokens taskRémy Coutable2016-10-111-0/+38
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-111-1/+1
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-092-11/+11
|
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-1/+0
|
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-45/+85
|
* Switch the gitlab:db:configure task to use tables.any? instead of looking ↵DJ Mountney2016-05-251-3/+3
| | | | specifically for the schema_migrations table
* Add tests for the gitlab:db:configure rake taskDJ Mountney2016-05-251-0/+62
|
* Fix backups if registry is disabledKamil Trzcinski2016-05-231-0/+18
|
* Added backup of container registryKamil Trzcinski2016-05-161-5/+9
|
* Ensure uploads dir exists when running backup specstests/isolate-carrierwave-uploadsGrzegorz Bizon2016-03-301-0/+4
|
* Reload the schema before restoring a database backupDrew Blessing2016-03-211-18/+22
|
* Add lfs to backup specs.lfs_default_and_backupMarin Jankovski2015-11-191-5/+9
|
* Specs that failed before the fix.Marin Jankovski2015-11-181-1/+2
|
* Implement Build ArtifactsKamil Trzcinski2015-11-101-5/+9
| | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* One more backup spec fixJacob Vosmaer2015-10-061-0/+1
| | | | Stop the 'uploads' part from actually running.
* Spec fixes for new backup contentsJacob Vosmaer2015-10-061-7/+7
|
* Fix rubocop warnings in spec/lib and spec/tasksGuilherme Garnier2015-10-031-1/+1
|
* Fix backup testsKamil Trzcinski2015-09-161-2/+2
|
* Fix: tasks/gitlab/backup_rake_spec.rbKamil Trzcinski2015-09-151-3/+3
|
* Cleanup CI backup => migrate with GitLabKamil Trzcinski2015-09-151-0/+4
|
* Use a separate backup test directory and nuke its contentsJacob Vosmaer2015-07-241-6/+4
|
* Create more backups during backup testsJacob Vosmaer2015-07-241-13/+11
| | | | I hope this makes the backup tests more reliable.
* Use a loop when enabling subtasksJacob Vosmaer2015-07-101-3/+3
|
* Remove rake task re-enabling into a methodJacob Vosmaer2015-07-091-6/+8
|
* More hacks to get the specs working againJacob Vosmaer2015-07-081-0/+3
|
* Add tests for custom backup archive file permissionsJacob Vosmaer2015-07-071-4/+27
|
* Fix rubocop issues after merge of recent masterDmitriy Zaporozhets2015-06-231-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Change `to_not` calls to `not_to`Robert Speicher2015-06-222-2/+2
| | | | Both work, but now we're consistent across the entire app.
* Update mock and stub syntax for specsRobert Speicher2015-06-221-17/+21
|
* Merge branch 'fix-backup-spec-regexp' into 'master'Douwe Maan2015-04-031-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve regexp to prevent false positives If a filename happened to contain "db" and enough "rwx" characters before, then this test would previously fail. For example: ``` drwxr-xr-x gitlab-runner/gitlab-runner 0 2015-04-02 07:46 uploads/tmp/cassidy.stokes8477/gitlabhq/36d972fa55d6b44810fc6fd843473adb/ ``` Adding a space before the "db" match string tightens up the regexp and reduces the chance of an unintended match. See merge request !489
| * Improve regexp to prevent false positivesStan Hu2015-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | If a filename happened to contain "db" and enough "rwx" characters before, then this test would previously fail. For example: ``` drwxr-xr-x gitlab-runner/gitlab-runner 0 2015-04-02 07:46 uploads/tmp/cassidy.stokes8477/gitlabhq/36d972fa55d6b44810fc6fd843473adb/ ``` Adding a space before the "db" match string tightens up the regexp and reduces the chance of unintended match.
* | ability to skip some items in backupbackup_skip_optionValery Sizov2015-04-021-0/+51
|/
* Don't use chmod_R for backup tarsVinnie Okada2015-03-281-1/+1
| | | | | When creating backup tar files, only change permissions on the `db`, `uploads`, and `repositories` directories, not their contents.
* Change permissions on backup filesVinnie Okada2015-03-171-7/+56
| | | | | Use more restrictive permissions for backup tar files and for the db, uploads, and repositories directories inside the tar files.