Fix specs to account for new 'debug' permissions

This commit is contained in:
Hiro Asari 2016-02-29 14:42:34 -10:00
parent 80cb945557
commit 89487c09ca
2 changed files with 268 additions and 258 deletions

View File

@ -23,7 +23,8 @@ describe Travis::API::V3::Services::Job::Find do
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => job.id,
"number" => job.number,
"state" => job.state,
@ -93,7 +94,8 @@ describe Travis::API::V3::Services::Job::Find do
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => job.id,
"number" => job.number,
"state" => job.state,

View File

@ -21,7 +21,8 @@ describe Travis::API::V3::Services::Jobs::Find do
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[0].id,
"number" => "#{jobs[0].number}",
"state" => "configured",
@ -30,45 +31,46 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
{"@type" => "job",
"@href" => "/v3/job/#{jobs[1].id}",
"@representation" => "standard",
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[1].id,
"number" => "#{jobs[1].number}",
"state" => "configured",
@ -77,45 +79,46 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
{"@type" => "job",
"@href" => "/v3/job/#{jobs[2].id}",
"@representation" => "standard",
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[2].id,
"number" => "#{jobs[2].number}",
"state" => "configured",
@ -124,45 +127,46 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
{"@type" => "job",
"@href" => "/v3/job/#{jobs[3].id}",
"@representation" => "standard",
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[3].id,
"number" => "#{jobs[3].number}",
"state" => "configured",
@ -171,38 +175,38 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}}
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}}
]
}
}
@ -227,7 +231,8 @@ describe Travis::API::V3::Services::Jobs::Find do
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[0].id,
"number" => "#{jobs[0].number}",
"state" => "configured",
@ -236,45 +241,46 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
{"@type" => "job",
"@href" => "/v3/job/#{jobs[1].id}",
"@representation" => "standard",
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[1].id,
"number" => "#{jobs[1].number}",
"state" => "configured",
@ -283,45 +289,46 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
{"@type" => "job",
"@href" => "/v3/job/#{jobs[2].id}",
"@representation" => "standard",
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[2].id,
"number" => "#{jobs[2].number}",
"state" => "configured",
@ -330,45 +337,46 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}},
{"@type" => "job",
"@href" => "/v3/job/#{jobs[3].id}",
"@representation" => "standard",
"@permissions" => {
"read" => true,
"cancel" => false,
"restart" => false },
"restart" => false,
"debug" => false },
"id" => jobs[3].id,
"number" => "#{jobs[3].number}",
"state" => "configured",
@ -377,38 +385,38 @@ describe Travis::API::V3::Services::Jobs::Find do
"build" => {
"@type" => "build",
"@href" => "/v3/build/#{build.id}",
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"@representation"=> "minimal",
"id" => build.id,
"number" => build.number,
"state" => "configured",
"duration" => nil,
"event_type" => "push",
"previous_state" => "passed",
"started_at" => "2010-11-12T13:00:00Z",
"finished_at" => nil},
"queue" => "builds.linux",
"repository" =>{
"@type" => "repository",
"@href" => "/v3/repo/1",
"@representation"=>"minimal",
"id" => repo.id,
"name" => "minimal",
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}}
"slug" => "svenfuchs/minimal"},
"commit" =>{
"@type" => "commit",
"@representation"=> "minimal",
"id" => commit.id,
"sha" => commit.commit,
"ref" => commit.ref,
"message" => commit.message,
"compare_url" => commit.compare_url,
"committed_at" =>"2010-11-12T12:55:00Z"},
"owner" =>{
"@type" => "user",
"@href" => "/v3/user/1",
"@representation"=> "minimal",
"id" => 1,
"login" => "svenfuchs"}}
]
}
}