Skip to content

Commit

Permalink
test -nc option
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-kai committed Sep 12, 2024
1 parent df0554c commit 8c2c80a
Showing 1 changed file with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,21 +477,15 @@ class RoleAppTest extends AnyWordSpec with WithProperties {
()
}

withProperties(
DebugProperties.`distage.roles.always-include-reference-role-configs`.name -> "false",
DebugProperties.`distage.roles.always-include-reference-common-configs`.name -> "false",
) {
TestEntrypoint.main(Array("-c", commonOverrideConf, "-ll", logLevel, ":" + ConfigTestRole.id, "-c", roleOverrideConf))
TestEntrypoint.main(Array("-c", commonOverrideConf, "-nc", "-ll", logLevel, ":" + ConfigTestRole.id, "-c", roleOverrideConf))

assert(configTestConfig.commonReferenceDev == 8, "common-reference-dev")
assert(configTestConfig.commonReference == 89, "common-reference")
assert(configTestConfig.common == 8, "common")
assert(configTestConfig.applicationReference == 9, "application-reference")
assert(configTestConfig.application == 8, "application")
assert(configTestConfig.roleReference == 9, "role-reference")
assert(configTestConfig.role == 8, "role")
()
}
assert(configTestConfig.commonReferenceDev == 8, "common-reference-dev")
assert(configTestConfig.commonReference == 89, "common-reference")
assert(configTestConfig.common == 8, "common")
assert(configTestConfig.applicationReference == 9, "application-reference")
assert(configTestConfig.application == 8, "application")
assert(configTestConfig.roleReference == 9, "role-reference")
assert(configTestConfig.role == 8, "role")
}

"roles do not have access to components from MainAppModule" in {
Expand Down

0 comments on commit 8c2c80a

Please sign in to comment.