Skip to content

Commit a33326f

Browse files
authored
Merge pull request #131 from GitGuardian/ybensafia/members-teams-endpoints
Add implementation for Members, Sources and Invitations endpoints
2 parents 391408f + 5133106 commit a33326f

35 files changed

+5344
-68
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
-->
6+
7+
<!--
8+
### Removed
9+
10+
- A bullet item for the Removed category.
11+
12+
-->
13+
14+
### Added
15+
16+
- Added support for members and teams endpoints.
17+
- Added support for invitations endpoints.
18+
- Added support for sources endpoints.
19+
20+
<!--
21+
### Changed
22+
23+
- A bullet item for the Changed category.
24+
25+
-->
26+
<!--
27+
### Deprecated
28+
29+
- A bullet item for the Deprecated category.
30+
31+
-->
32+
<!--
33+
### Fixed
34+
35+
- A bullet item for the Fixed category.
36+
37+
-->
38+
<!--
39+
### Security
40+
41+
- A bullet item for the Security category.
42+
43+
-->

doc/dev/tests.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Users, teams and sources
2+
3+
It is possible to removed all cassettes from this repository and run them all by providing a valid personal access token.
4+
5+
However, for users, teams and sources, this requires a workplace with enough data filled in.
6+
7+
## For source related tests
8+
9+
We require the workplace to have:
10+
11+
- At least two sources
12+
13+
## For member related tests
14+
15+
We require the workplace to have:
16+
17+
- At least two members, they should have different access levels
18+
- At least one invitation sent out
19+
20+
## For team related tests
21+
22+
We require the workplace to have :
23+
24+
- At least two teams
25+
- These teams should have 2 or more members
26+
- These teams should have at least one monitored source in their perimeter
27+
- ⚠️ No team should have all available sources in their perimeter
28+
- There should exist a team where at least one member is not invited
29+
- There should exist one pending team invitation
30+
31+
> Keep in mind that some of these tests will delete resources, so they should run in an isolated workplace

0 commit comments

Comments
 (0)