File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments