E2E - Artifacts `access` keyword
Follow-up from !145206 (comment 1801352220)
This issue describes the proposal for a new E2E test for pipeline configuration keyword access
.
Test steps:
- Create a new project via API
- Register a runner to the project via API
- Create a user, add this user to the project as
developer
- Create a user, don't add this user to the project, this will be the non-member user
access: none
Context: when - Add
.gitlab-ci.yml
to the project with keywordaccess: none
, (wait for pipeline to succeed)
Test case: project member cannot access artifact
- Login as developer user, visit project -> latest pipeline -> job with artifacts
- Verify developer user cannot access the artifacts
Test case: non-project member cannot access artifact
- Logout and login as non-member user, visit project -> latest pipeline -> job with artifacts
- Verify non-member user cannot access the artifacts
access: developer
Context: when - Add
.gitlab-ci.yml
to the project with keywordaccess: developer
, (wait for pipeline to succeed)
Test case: project member can access artifact
- Login as developer user, visit project -> latest pipeline -> job with artifacts
- Verify developer user can access the artifacts
Test case: non-project member cannot access artifact
- Logout and login as non-member user, visit project -> latest pipeline -> job with artifacts
- Verify non-member user cannot access the artifacts
access: all
Context: when - Add
.gitlab-ci.yml
to the project with keywordaccess: all
, (wait for pipeline to succeed)
Test case: project member can access artifact
- Login as developer user, visit project -> latest pipeline -> job with artifacts
- Verify developer user can access the artifacts
Test case: non-project member can access artifact
- Logout and login as non-member user, visit project -> latest pipeline -> job with artifacts
- Verify non-member user can access the artifacts