BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
eb4f1557
Commit
eb4f1557
authored
Nov 23, 2016
by
Livier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed API spec files to describe the correct class
Restore changes for api spec files Fix error in rspec Users Delete extra space Repositories-spec
parent
d9eb2f2c
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
42 additions
and
39 deletions
+42
-39
update-api-spec-files.yml
changelogs/unreleased/update-api-spec-files.yml
+4
-0
award_emoji_spec.rb
spec/requests/api/award_emoji_spec.rb
+1
-1
boards_spec.rb
spec/requests/api/boards_spec.rb
+1
-1
branches_spec.rb
spec/requests/api/branches_spec.rb
+1
-1
builds_spec.rb
spec/requests/api/builds_spec.rb
+1
-1
commits_spec.rb
spec/requests/api/commits_spec.rb
+1
-1
deploy_keys_spec.rb
spec/requests/api/deploy_keys_spec.rb
+1
-1
deployments_spec.rb
spec/requests/api/deployments_spec.rb
+1
-1
environments_spec.rb
spec/requests/api/environments_spec.rb
+1
-1
files_spec.rb
spec/requests/api/files_spec.rb
+1
-1
groups_spec.rb
spec/requests/api/groups_spec.rb
+1
-1
internal_spec.rb
spec/requests/api/internal_spec.rb
+1
-1
issues_spec.rb
spec/requests/api/issues_spec.rb
+1
-1
keys_spec.rb
spec/requests/api/keys_spec.rb
+1
-1
labels_spec.rb
spec/requests/api/labels_spec.rb
+1
-1
merge_request_diffs_spec.rb
spec/requests/api/merge_request_diffs_spec.rb
+1
-1
merge_requests_spec.rb
spec/requests/api/merge_requests_spec.rb
+1
-1
milestones_spec.rb
spec/requests/api/milestones_spec.rb
+1
-1
namespaces_spec.rb
spec/requests/api/namespaces_spec.rb
+1
-1
notes_spec.rb
spec/requests/api/notes_spec.rb
+1
-1
notification_settings_spec.rb
spec/requests/api/notification_settings_spec.rb
+1
-1
pipelines_spec.rb
spec/requests/api/pipelines_spec.rb
+1
-1
project_hooks_spec.rb
spec/requests/api/project_hooks_spec.rb
+1
-1
project_snippets_spec.rb
spec/requests/api/project_snippets_spec.rb
+1
-1
projects_spec.rb
spec/requests/api/projects_spec.rb
+1
-1
repositories_spec.rb
spec/requests/api/repositories_spec.rb
+2
-3
services_spec.rb
spec/requests/api/services_spec.rb
+1
-1
session_spec.rb
spec/requests/api/session_spec.rb
+1
-1
settings_spec.rb
spec/requests/api/settings_spec.rb
+1
-1
system_hooks_spec.rb
spec/requests/api/system_hooks_spec.rb
+1
-1
tags_spec.rb
spec/requests/api/tags_spec.rb
+1
-1
triggers_spec.rb
spec/requests/api/triggers_spec.rb
+1
-1
users_spec.rb
spec/requests/api/users_spec.rb
+1
-1
variables_spec.rb
spec/requests/api/variables_spec.rb
+1
-1
version_spec.rb
spec/requests/api/version_spec.rb
+1
-1
builds_spec.rb
spec/requests/ci/api/builds_spec.rb
+1
-1
runners_spec.rb
spec/requests/ci/api/runners_spec.rb
+1
-1
triggers_spec.rb
spec/requests/ci/api/triggers_spec.rb
+1
-1
No files found.
changelogs/unreleased/update-api-spec-files.yml
0 → 100644
View file @
eb4f1557
---
title
:
Update API spec files to describe the correct class
merge_request
:
author
:
Livier
spec/requests/api/award_emoji_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
A
PI
,
api:
true
do
describe
API
::
A
wardEmoji
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:empty_project
)
}
...
...
spec/requests/api/boards_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Boards
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/branches_spec.rb
View file @
eb4f1557
require
'spec_helper'
require
'mime/types'
describe
API
::
API
,
api:
true
do
describe
API
::
Branches
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/builds_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Builds
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/commits_spec.rb
View file @
eb4f1557
require
'spec_helper'
require
'mime/types'
describe
API
::
API
,
api:
true
do
describe
API
::
Commits
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
spec/requests/api/deploy_keys_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
DeployKeys
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/deployments_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Deployments
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/environments_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Environments
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/files_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Files
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
...
...
spec/requests/api/groups_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Groups
,
api:
true
do
include
ApiHelpers
let
(
:user1
)
{
create
(
:user
,
can_create_group:
false
)
}
...
...
spec/requests/api/internal_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Internal
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:key
)
{
create
(
:key
,
user:
user
)
}
...
...
spec/requests/api/issues_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Issues
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/keys_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Keys
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/labels_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Labels
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/merge_request_diffs_spec.rb
View file @
eb4f1557
require
"spec_helper"
describe
API
::
API
,
'MergeRequestDiffs'
,
api:
true
do
describe
API
::
MergeRequestDiffs
,
'MergeRequestDiffs'
,
api:
true
do
include
ApiHelpers
let!
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/merge_requests_spec.rb
View file @
eb4f1557
require
"spec_helper"
describe
API
::
API
,
api:
true
do
describe
API
::
MergeRequests
,
api:
true
do
include
ApiHelpers
let
(
:base_time
)
{
Time
.
now
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/milestones_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Milestones
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:empty_project
,
namespace:
user
.
namespace
)
}
...
...
spec/requests/api/namespaces_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Namespaces
,
api:
true
do
include
ApiHelpers
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/notes_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Notes
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:project
,
:public
,
namespace:
user
.
namespace
)
}
...
...
spec/requests/api/notification_settings_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
NotificationSettings
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/pipelines_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Pipelines
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/project_hooks_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
'ProjectHooks'
,
api:
true
do
describe
API
::
ProjectHooks
,
'ProjectHooks'
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
...
...
spec/requests/api/project_snippets_spec.rb
View file @
eb4f1557
require
'rails_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
ProjectSnippets
,
api:
true
do
include
ApiHelpers
let
(
:project
)
{
create
(
:empty_project
,
:public
)
}
...
...
spec/requests/api/projects_spec.rb
View file @
eb4f1557
# -*- coding: utf-8 -*-
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Projects
,
api:
true
do
include
ApiHelpers
include
Gitlab
::
CurrentSettings
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/repositories_spec.rb
View file @
eb4f1557
require
'spec_helper'
require
'mime/types'
describe
API
::
API
,
api:
true
do
describe
API
::
Repositories
,
api:
true
do
include
ApiHelpers
include
RepoHelpers
include
WorkhorseHelpers
...
...
@@ -44,7 +44,6 @@ describe API::API, api: true do
end
end
describe
'GET /projects/:id/repository/tree?recursive=1'
do
context
'authorized user'
do
before
{
project
.
team
<<
[
user2
,
:reporter
]
}
...
...
@@ -67,7 +66,7 @@ describe API::API, api: true do
expect
(
json_response
).
to
be_an
Object
json_response
[
'message'
]
==
'404 Tree Not Found'
end
end
end
context
"unauthorized user"
do
...
...
spec/requests/api/services_spec.rb
View file @
eb4f1557
require
"spec_helper"
describe
API
::
API
,
api:
true
do
describe
API
::
Services
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:admin
)
{
create
(
:admin
)
}
...
...
spec/requests/api/session_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Session
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/settings_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
'Settings'
,
api:
true
do
describe
API
::
Settings
,
'Settings'
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/system_hooks_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
SystemHooks
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/tags_spec.rb
View file @
eb4f1557
require
'spec_helper'
require
'mime/types'
describe
API
::
API
,
api:
true
do
describe
API
::
Tags
,
api:
true
do
include
ApiHelpers
include
RepoHelpers
...
...
spec/requests/api/triggers_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
do
describe
API
::
Triggers
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/users_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Users
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/variables_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Variables
,
api:
true
do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/requests/api/version_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
Version
,
api:
true
do
include
ApiHelpers
describe
'GET /version'
do
...
...
spec/requests/ci/api/builds_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
Ci
::
API
::
API
do
describe
Ci
::
API
::
Builds
do
include
ApiHelpers
let
(
:runner
)
{
FactoryGirl
.
create
(
:ci_runner
,
tag_list:
[
"mysql"
,
"ruby"
])
}
...
...
spec/requests/ci/api/runners_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
Ci
::
API
::
API
do
describe
Ci
::
API
::
Runners
do
include
ApiHelpers
include
StubGitlabCalls
...
...
spec/requests/ci/api/triggers_spec.rb
View file @
eb4f1557
require
'spec_helper'
describe
Ci
::
API
::
API
do
describe
Ci
::
API
::
Triggers
do
include
ApiHelpers
describe
'POST /projects/:project_id/refs/:ref/trigger'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment