Skip to content

Commit 1eabd16

Browse files
tegiozcynthia-sg
andauthored
Add tests for templates (#342)
Signed-off-by: Sergio Castaño Arteaga <[email protected]> Signed-off-by: Cintia Sánchez García <[email protected]> Co-authored-by: Cintia Sánchez García <[email protected]>
1 parent eede26f commit 1eabd16

19 files changed

+605
-25
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Reconciliation completed
2+
3+
#### ✅ The reconciliation completed successfully and all changes have been applied across the services!
4+
5+
## Changes applied
6+
7+
No actionable changes detected.
8+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Reconciliation completed
2+
3+
#### ✅ The reconciliation completed successfully and all changes have been applied across the services!
4+
5+
## Changes applied
6+
7+
### Github
8+
9+
- repository **test-repo** has been *added* (visibility: **public**)
10+
- team **engineering** has been *added* to repository **test-repo** (role: **write**)
11+
- user **alice** is now a collaborator (role: **admin**) of repository **test-repo**
12+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Reconciliation completed
2+
3+
#### ✅ The reconciliation completed successfully and all changes have been applied across the services!
4+
5+
## Changes applied
6+
7+
### Github
8+
9+
- repository **complex-repo** has been *added* (visibility: **public**)
10+
- Teams
11+
- **backend**: *admin*
12+
- **frontend**: *write*
13+
- Collaborators
14+
- **jane**: *read*
15+
- **john**: *maintain*
16+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Reconciliation completed
2+
3+
#### ‼️ Some errors were found during the reconciliation
4+
5+
## Github
6+
7+
- Error applying change: **TeamAdded("test-repo", "engineering", Write)**
8+
9+
```
10+
Team not found in directory
11+
```
12+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Reconciliation completed
2+
3+
#### ‼️ Some errors were found during the reconciliation
4+
5+
## Github
6+
7+
Errors:
8+
9+
- Failed to connect to GitHub API
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Validation failed
2+
3+
#### ‼️ Some errors were found validating the configuration files
4+
5+
***
6+
7+
Errors:
8+
9+
- Configuration validation failed
10+
- Missing required field: teams
11+
- Invalid repository name: contains spaces
12+
13+
***
14+
15+
For more details about the configuration files format please see the [documentation](https://github.com/cncf/clowarden).
16+
17+
🔺 **These errors must be addressed before this PR can be merged** 🔺
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Validation failed
2+
3+
#### ‼️ Some errors were found validating the configuration files
4+
5+
***
6+
7+
Errors:
8+
9+
- Configuration validation failed
10+
- Unable to read configuration file
11+
- Failed to parse configuration
12+
13+
***
14+
15+
For more details about the configuration files format please see the [documentation](https://github.com/cncf/clowarden).
16+
17+
🔺 **These errors must be addressed before this PR can be merged** 🔺
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Validation failed
2+
3+
#### ‼️ Some errors were found validating the configuration files
4+
5+
***
6+
7+
Errors:
8+
9+
- Invalid configuration format
10+
11+
***
12+
13+
For more details about the configuration files format please see the [documentation](https://github.com/cncf/clowarden).
14+
15+
🔺 **These errors must be addressed before this PR can be merged** 🔺
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Validation succeeded
2+
3+
#### ✅ The proposed configuration changes are valid!
4+
5+
## Configuration changes
6+
7+
### Directory
8+
9+
- user **Bob Jones** has been *added*
10+
11+
### Github
12+
13+
- team **legacy-team** has been *removed* from repository **old-repo**
14+
15+
***
16+
17+
🔸 **Please review the changes detected as they will be applied *immediately* once this PR is merged** 🔸
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Validation succeeded
2+
3+
#### ✅ The proposed configuration changes are valid!
4+
5+
## Configuration changes
6+
7+
### Directory
8+
9+
- user **Alice Smith** has been *added*
10+
- team **engineering** has been *added*
11+
- **alice** is now a member of team **engineering**
12+
13+
***
14+
15+
🔸 **Please review the changes detected as they will be applied *immediately* once this PR is merged** 🔸

0 commit comments

Comments
 (0)