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:
Veiko Aasa 2021-01-10 09:31:02 +02:00 committed by Joseph Nuthalapati
parent 23fee50bd4
commit 504d0cdf00
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -70,7 +70,6 @@ Scenario: Edit default branch of the repository
When I set branch1 as a default branch
Then the gitweb site should show branch1 as a default repo branch
Scenario: Access public repository with git client
Given the gitweb application is enabled
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 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
Given the gitweb application is enabled
And a repository