summaryrefslogtreecommitdiff
path: root/spec/requests/ci
Commit message (Collapse)AuthorAgeFilesLines
* Make specs a bit fasterspec_optimizationValery Sizov2016-11-012-13/+22
|
* Add some tests for updating ci runner informationupdate-runner-informationGrzegorz Bizon2016-10-031-16/+27
|
* Solve code review commentsKamil Trzcinski2016-09-191-0/+9
|
* Added builds_spec and git_http_specsKamil Trzcinski2016-09-151-11/+66
|
* Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json'Tomasz Maczukin2016-09-131-0/+10
|
* Fix rubocop offencesTomasz Maczukin2016-09-131-1/+1
|
* Change response for /ci/api/v1/builds/register.json from 404 to 204Tomasz Maczukin2016-09-131-19/+31
|
* Constants in specsJacob Vosmaer2016-09-061-1/+1
|
* Verify JWT messages from gitlab-workhorseJacob Vosmaer2016-09-051-1/+10
|
* Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-112-89/+77
| | | | | | | | | | | This change simplifies a Pipeline processing by introducing a special new status: created. This status is used for all builds that are created for a pipeline. We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped). This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled. This also allows us to visualise a full pipeline (with created builds). This also removes an after_touch used for updating a pipeline state parameters. Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-092-26/+26
|
* Fix testsKatarzyna Kobierska2016-07-261-1/+1
|
* Update all exposed variables to CI buildsKamil Trzcinski2016-07-201-5/+5
|
* Use describe rather than context for this:save-artifacts_sizesLin Jen-Shin2016-07-041-1/+1
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964/diffs#note_12867416 Guidelines: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/testing.md#general-guidelines > Use `context` to test branching logic.
* Use describe rather than context, feedback from:Lin Jen-Shin2016-07-041-1/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12861588
* Rename to "successful artifacts upload", feedback:Lin Jen-Shin2016-07-041-4/+4
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12861577
* Rename shared_examples, feedback:Lin Jen-Shin2016-07-011-4/+4
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12817406
* Use nil for non-existing files rather than 0Lin Jen-Shin2016-07-011-1/+1
|
* Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-2/+6
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
* Also remove ci_builds.artifacts_size when erasedLin Jen-Shin2016-06-281-0/+1
|
* Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-11/+3
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
* Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-2/+12
| | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* Cleanup the tests a bit in order to extend itLin Jen-Shin2016-06-281-15/+34
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-272-37/+37
|
* Improve testsKamil Trzcinski2016-06-131-2/+2
|
* Improve design based on reviewKamil Trzcinski2016-06-131-3/+3
|
* Support expiration date in CI API when uploading artifactsKamil Trzcinski2016-06-131-0/+36
|
* Rename commit to pipeline in TriggerRequestKamil Trzcinski2016-06-091-1/+1
|
* Merge branch 'rename-ci-commit' into rename-ci-commit-phase-2Kamil Trzcinski2016-06-061-1/+1
|\ | | | | | | | | | | # Conflicts: # features/steps/shared/builds.rb # spec/requests/ci/api/builds_spec.rb
| * Fix tests offenses: use `pipeline` of Ci::Build and rename viewsKamil Trzcinski2016-06-061-1/+1
| |
* | Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-032-30/+30
|/
* Rename Ci::Build commit to pipelineKamil Trzcinski2016-06-031-6/+6
|
* Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski2016-06-021-1/+1
|
* Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-241-2/+2
| | | | Also removes the note from the development/testing.md guide
* Minor runner-related code refactoringsGrzegorz Bizon2016-05-191-10/+10
|
* Set run untagged option when registering a runnerGrzegorz Bizon2016-05-191-3/+32
|
* Refactor CI API specs for creating runnerGrzegorz Bizon2016-05-191-17/+29
|
* Add CI API tests for runner config and untagged jobsGrzegorz Bizon2016-05-191-0/+32
|
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-2/+2
|
* Merge branch 'ci-commit-as-pipeline' into 'master' Kamil Trzciński2016-04-211-10/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci::Commit becomes a Pipeline object 1. Ci::Commit receives context: ref, :tag. 1. One Ci::Commit describes a one Pipeline 1. Pipeline is created from `.gitlab-ci.yml` 1. Pipeline is a ordered group of builds 1. We test MR against Pipeline 1. Pipelines have a separate view (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Pipeline can be triggered from UI (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Later we change `Trigger -> TriggerRequest -> Build` to `Trigger -> Pipeline` (future) 1. We add a Pipeline Hook that will be triggered on Pipeline status change (future) 1. We extend notifications to use `Pipeline Hook` to send summary on pipeline changes (future) After merging that I'll prepare a separate MR that will unify naming, database columns, table names: ``` Ci::Commit -> Pipeline Ci::Build -> Build CommitStatus -> Job GenericCommitStatus -> ExternalJob ci_commits -> pipelines ci_builds -> jobs ``` This MR implements first 5 points. This is made to solve this issue https://gitlab.com/gitlab-org/gitlab-ce/issues/14149. See merge request !3653
| * Fix specsKamil Trzcinski2016-04-111-10/+10
| |
* | Make sure that appending is done on a valid lengthTomasz Maczukin2016-04-201-1/+1
| |
* | Add range checkingTomasz Maczukin2016-04-201-7/+31
| |
* | Add incremental build trace update APITomasz Maczukin2016-04-201-0/+22
|/
* Fix ci_build trace traitKamil Trzcinski2016-02-191-1/+1
|
* Move build eraseable API to proper API contextGrzegorz Bizon2016-02-191-12/+0
|
* Do not allow to modify build if it has been erasedGrzegorz Bizon2016-02-191-21/+35
|
* Use DELETE verb for erasing a build contentGrzegorz Bizon2016-02-191-0/+18
| | | | Also added API specs for that
* Extract shared context level up in build specsci/improve-ci-build-apiGrzegorz Bizon2016-02-041-56/+17
| | | | Also improve performance of specs by joining some of examples.
* Improve CI API specs related to operations on buildGrzegorz Bizon2016-02-041-21/+34
| | | | | Conflicts: spec/factories/ci/builds.rb