We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
EnvironmentVariableFilter
1 parent 0753d33 commit d2ba8e4Copy full SHA for d2ba8e4
utils/common/src/test/kotlin/EnvironmentVariableFilterTest.kt
@@ -80,4 +80,18 @@ class EnvironmentVariableFilterTest : StringSpec({
80
81
environment should containExactly(filteredEnvironment)
82
}
83
+
84
+ "An empty deny list should not deny anything" {
85
+ EnvironmentVariableFilter.reset(denySubstrings = emptyList())
86
87
+ EnvironmentVariableFilter.DEFAULT_DENY_SUBSTRINGS.forAll {
88
+ EnvironmentVariableFilter.isAllowed(it) shouldBe true
89
+ }
90
91
+ EnvironmentVariableFilter.DEFAULT_ALLOW_NAMES.forAll {
92
93
94
95
+ EnvironmentVariableFilter.isAllowed("PATH") shouldBe true
96
97
})
0 commit comments