Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

authz/perforce: add additional unit test cases#42287

Merged
sashaostrikov merged 2 commits into
pjlast/41781-create-database-migrationsfrom
ao/add-more-perforce-tests
Sep 29, 2022
Merged

authz/perforce: add additional unit test cases#42287
sashaostrikov merged 2 commits into
pjlast/41781-create-database-migrationsfrom
ao/add-more-perforce-tests

Conversation

@sashaostrikov

Copy link
Copy Markdown
Contributor

Adding some test cases.

Initial intention was to also add tests from manual testing doc, but our current unit test setup cannot support such e2e tests.

Closes https://github.com/sourcegraph/sourcegraph/issues/42156

Test plan

New tests added

@sourcegraph-bot

sourcegraph-bot commented Sep 29, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 7d3ab17...097276c.

Notify File(s)
@unknwon enterprise/internal/authz/perforce/perforce_test.go
enterprise/internal/authz/perforce/protects_test.go

=read user alice * -//Sourcegraph/Engineering/Frontend/... ## exact match of a previous include
open user alice * -//Sourcegraph/Engineering/Backend/Credentials/... ## sub-match of a previous include
open user alice * -//Sourcegraph/Engineering/*/Frontend/Folder/... ## sub-match of a previous include
open user alice * -//Sourcegraph/*/Handbook/... ## sub-match of wildcard A include

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comments here are super helpful 🙏

@mollylogue mollylogue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🙏

@sashaostrikov sashaostrikov merged commit 6fac326 into pjlast/41781-create-database-migrations Sep 29, 2022
@sashaostrikov sashaostrikov deleted the ao/add-more-perforce-tests branch September 29, 2022 16:34
@pjlast pjlast linked an issue Sep 30, 2022 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Perforce: Work through unit tests to identify gaps

4 participants