Skip to content

Commit 7012ea6

Browse files
committed
chore: refactor components inside test run block
1 parent 88c88b5 commit 7012ea6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/user_groups_assignment_unit-tests.tftest.hcl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#Argument validation for user-group-assignment module
22
run "check_for_invalid_user" {
3-
module {
4-
source = "./modules/user_groups_assignment"
5-
}
3+
command = plan
64

75
variables {
86
user_groups_mapping = {
@@ -12,43 +10,45 @@ run "check_for_invalid_user" {
1210
}
1311
}
1412

15-
command = plan
13+
module {
14+
source = "./modules/user_groups_assignment"
15+
}
1616

1717
expect_failures = [
1818
var.user_groups_mapping
1919
]
2020
}
2121

2222
run "check_for_valid_user_with_no_groups" {
23-
module {
24-
source = "./modules/user_groups_assignment"
25-
}
23+
command = plan
2624

2725
variables {
2826
user_groups_mapping = {
2927
"dummyUser@gmail.com" = []
3028
}
3129
}
3230

33-
command = plan
31+
module {
32+
source = "./modules/user_groups_assignment"
33+
}
3434

3535
expect_failures = [
3636
var.user_groups_mapping
3737
]
3838
}
3939

4040
run "check_for_invalid_group" {
41-
module {
42-
source = "./modules/user_groups_assignment"
43-
}
41+
command = plan
4442

4543
variables {
4644
user_groups_mapping = {
4745
"dummyUser@gmail.com" = [""]
4846
}
4947
}
5048

51-
command = plan
49+
module {
50+
source = "./modules/user_groups_assignment"
51+
}
5252

5353
expect_failures = [
5454
var.user_groups_mapping

0 commit comments

Comments
 (0)