mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
gitweb: Add functional tests for git-access group
Add functional tests: - User of git-access group can access gitweb site. - User not of git-access group can't access gitweb site. Tested that all the gitweb app tests pass. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
23fee50bd4
commit
504d0cdf00
@ -70,7 +70,6 @@ Scenario: Edit default branch of the repository
|
|||||||
When I set branch1 as a default branch
|
When I set branch1 as a default branch
|
||||||
Then the gitweb site should show branch1 as a default repo branch
|
Then the gitweb site should show branch1 as a default repo branch
|
||||||
|
|
||||||
|
|
||||||
Scenario: Access public repository with git client
|
Scenario: Access public repository with git client
|
||||||
Given the gitweb application is enabled
|
Given the gitweb application is enabled
|
||||||
And a public repository
|
And a public repository
|
||||||
@ -88,6 +87,20 @@ Scenario: Access private repository with git client
|
|||||||
And the repository should be privately readable
|
And the repository should be privately readable
|
||||||
And the repository should be privately writable
|
And the repository should be privately writable
|
||||||
|
|
||||||
|
Scenario: User of git-access group can access gitweb site
|
||||||
|
Given the gitweb application is enabled
|
||||||
|
And all repositories are private
|
||||||
|
And the user gituser in group git-access exists
|
||||||
|
When I'm logged in as the user gituser
|
||||||
|
Then the gitweb site should be available
|
||||||
|
|
||||||
|
Scenario: User not of git-access group can't access gitweb site
|
||||||
|
Given the gitweb application is enabled
|
||||||
|
And all repositories are private
|
||||||
|
And the user nogroupuser exists
|
||||||
|
When I'm logged in as the user nogroupuser
|
||||||
|
Then the gitweb site should not be available
|
||||||
|
|
||||||
Scenario: Delete repository
|
Scenario: Delete repository
|
||||||
Given the gitweb application is enabled
|
Given the gitweb application is enabled
|
||||||
And a repository
|
And a repository
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user