gitlab-org--gitlab-foss/spec
Lin Jen-Shin 18d7ae4309 Add a test for #22010
The observed faulty state transition is probably hard to test,
because we need to hook into internal states to observe them.
Namely this:

    07:30:16 | Build#ruby-2.2 enqueue: created -> pending
    07:30:16 | Pipeline#32    enqueue: created -> pending
    07:30:16 | Build#ruby-2.3 enqueue: created -> pending
    07:30:16 | Build#ruby-2.2     run: pending -> running
    07:30:16 | Pipeline#32        run: pending -> running
    07:30:29 | Build#ruby-2.2    drop: running -> failed
    07:30:29 | Pipeline#32        run: running -> running
    07:30:29 | Build#ruby-2.3     run: pending -> running
    07:30:30 | Pipeline#32        run: running -> running
    07:30:57 | Build#gem:build   skip: created -> skipped
    07:30:57 | Pipeline#32       drop: running -> failed
    07:30:57 | Build#gem:release skip: created -> skipped
    07:30:57 | Pipeline#32       drop:  failed -> failed
    07:30:57 | Build#ruby-2.3    drop: running -> failed
    07:30:57 | Pipeline#32       drop: running -> failed
                                       ^^^ Should be failed -> failed

However, the consequence of this, executing hooks twice would be
easy enough to observe. So we could at least test against this.
Keep in mind that if we ever changed how we execute the hooks
this won't be testing against faulty state transition.
2016-09-13 16:14:20 +08:00
..
config
controllers Merge branch 'add-remember-option-u2f' into 'master' 2016-09-09 18:42:11 +00:00
factories Optimize discussion notes resolving and unresolving 2016-09-06 12:14:09 -03:00
features Merge branch 'add-remember-option-u2f' into 'master' 2016-09-09 18:42:11 +00:00
finders Improve PipelinesFinder spec so that it does not depend on hard-coded database IDs 2016-09-09 16:21:46 -04:00
fixtures Returns the total number of issues in the JSON response 2016-08-31 09:30:37 +01:00
helpers Merge branch 'sidekiq-ps-parsing' into 'master' 2016-09-09 09:53:24 +00:00
initializers
javascripts Merge branch 'add-remember-option-u2f' into 'master' 2016-09-09 18:42:11 +00:00
lib Merge branch 'restrict_ldap_return_attributes' into 'master' 2016-09-09 18:59:33 +00:00
mailers Merge branch 'master' into 'expiration-date-on-memberships' 2016-08-19 10:58:01 +00:00
models Add a test for #22010 2016-09-13 16:14:20 +08:00
policies add project_policy_spec to replace .project_abilities spec 2016-08-30 11:35:06 -07:00
requests should show the status of the latest one 2016-09-12 21:27:59 +08:00
routing Fix markdown help references 2016-08-26 09:38:21 -05:00
services Refresh todos count cache when an Issue/MR is deleted 2016-09-08 15:50:07 -03:00
support Merge branch 'restrict_ldap_return_attributes' into 'master' 2016-09-09 18:59:33 +00:00
tasks/gitlab
uploaders
views add feature test 2016-09-06 14:42:43 +02:00
workers Added cron to prune events older than 12 months. 2016-09-07 19:41:25 +02:00
factories_spec.rb
rails_helper.rb
simplecov_env.rb Bump SimpleCov merge timeout to 365 days 2016-08-22 13:44:14 +02:00
spec_helper.rb Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name 2016-08-24 20:56:30 +08:00
teaspoon_env.rb