Skip to content

Commit 6e01fa6

Browse files
committed
Merge branch 'feat/sso_user_groups_assignment' into sso_groups
2 parents aeaca20 + 7012ea6 commit 6e01fa6

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#Argument validation for user-group-assignment module
2+
run "check_for_invalid_user" {
3+
command = plan
4+
5+
variables {
6+
user_groups_mapping = {
7+
"dummyUser@gmail.com" = [
8+
"Group1"
9+
]
10+
}
11+
}
12+
13+
module {
14+
source = "./modules/user_groups_assignment"
15+
}
16+
17+
expect_failures = [
18+
var.user_groups_mapping
19+
]
20+
}
21+
22+
run "check_for_valid_user_with_no_groups" {
23+
command = plan
24+
25+
variables {
26+
user_groups_mapping = {
27+
"dummyUser@gmail.com" = []
28+
}
29+
}
30+
31+
module {
32+
source = "./modules/user_groups_assignment"
33+
}
34+
35+
expect_failures = [
36+
var.user_groups_mapping
37+
]
38+
}
39+
40+
run "check_for_invalid_group" {
41+
command = plan
42+
43+
variables {
44+
user_groups_mapping = {
45+
"dummyUser@gmail.com" = [""]
46+
}
47+
}
48+
49+
module {
50+
source = "./modules/user_groups_assignment"
51+
}
52+
53+
expect_failures = [
54+
var.user_groups_mapping
55+
]
56+
}

0 commit comments

Comments
 (0)