Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f5ea25aa
Commit
f5ea25aa
authored
Mar 06, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in api v3 specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c93df1a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
27 deletions
+11
-27
spec/requests/api/v3/groups_spec.rb
spec/requests/api/v3/groups_spec.rb
+11
-21
spec/requests/api/v3/settings_spec.rb
spec/requests/api/v3/settings_spec.rb
+0
-6
No files found.
spec/requests/api/v3/groups_spec.rb
View file @
f5ea25aa
...
...
@@ -415,6 +415,17 @@ describe API::V3::Groups, api: true do
expect
(
response
).
to
have_http_status
(
404
)
end
end
context
"when authenticated as user with group permissions"
do
it
"updates group"
do
group2
.
update
(
owner:
user2
)
put
v3_api
(
"/groups/
#{
group2
.
id
}
"
,
user2
),
{
name:
'Renamed'
}
expect
(
response
.
status
).
to
eq
(
200
)
expect
(
group2
.
reload
.
name
).
to
eq
(
'Renamed'
)
end
end
end
describe
"GET /groups/:id/projects"
do
...
...
@@ -585,7 +596,6 @@ describe API::V3::Groups, api: true do
expect
(
response
).
to
have_http_status
(
400
)
end
<<<<<<<
HEAD
it
"creates an ldap_group_link if ldap_cn and ldap_access are supplied"
do
group_attributes
=
attributes_for
(
:group
,
ldap_cn:
'ldap-group'
,
ldap_access:
Gitlab
::
Access
::
DEVELOPER
)
...
...
@@ -594,26 +604,6 @@ describe API::V3::Groups, api: true do
end
end
describe
"PUT /groups"
do
context
"when authenticated as user without group permissions"
do
it
"does not create group"
do
put
v3_api
(
"/groups/
#{
group2
.
id
}
"
,
user1
),
attributes_for
(
:group
)
expect
(
response
.
status
).
to
eq
(
404
)
end
end
context
"when authenticated as user with group permissions"
do
it
"updates group"
do
group2
.
update
(
owner:
user2
)
put
v3_api
(
"/groups/
#{
group2
.
id
}
"
,
user2
),
{
name:
'Renamed'
}
expect
(
response
.
status
).
to
eq
(
200
)
expect
(
group2
.
reload
.
name
).
to
eq
(
'Renamed'
)
end
=======
>>>>>>>
ce
-
com
/
master
end
end
describe
"DELETE /groups/:id"
do
context
"when authenticated as user"
do
it
"removes group"
do
...
...
spec/requests/api/v3/settings_spec.rb
View file @
f5ea25aa
...
...
@@ -9,10 +9,7 @@ describe API::V3::Settings, 'Settings', api: true do
describe
"GET /application/settings"
do
it
"returns application settings"
do
get
v3_api
(
"/application/settings"
,
admin
)
<<<<<<<
HEAD
=======
>>>>>>>
ce
-
com
/
master
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
).
to
be_an
Hash
expect
(
json_response
[
'default_projects_limit'
]).
to
eq
(
42
)
...
...
@@ -36,10 +33,7 @@ describe API::V3::Settings, 'Settings', api: true do
put
v3_api
(
"/application/settings"
,
admin
),
default_projects_limit:
3
,
signin_enabled:
false
,
repository_storage:
'custom'
,
koding_enabled:
true
,
koding_url:
'http://koding.example.com'
,
plantuml_enabled:
true
,
plantuml_url:
'http://plantuml.example.com'
<<<<<<<
HEAD
=======
>>>>>>>
ce
-
com
/
master
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
[
'default_projects_limit'
]).
to
eq
(
3
)
expect
(
json_response
[
'signin_enabled'
]).
to
be_falsey
...
...
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