You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core-tests/integration-tests/core-it/src/test/kotlin/org/evomaster/core/problem/rest/IntegrationTestRestBase.kt
Copy file name to clipboardExpand all lines: core-tests/integration-tests/core-it/src/test/kotlin/org/evomaster/core/problem/rest/securityrestoracle/SecurityForbiddenOperationTest.kt
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,12 @@ class SecurityForbiddenOperationTest : IntegrationTestRestBase() {
37
37
SecurityForbiddenOperationApplication.reset()
38
38
}
39
39
40
+
privatefunmakeSureCanRunSecurityPhase(){
41
+
val epc = getExecutionPhaseController()
42
+
epc.markStartingSearch()
43
+
epc.markStartingSecurity()
44
+
}
45
+
40
46
@Test
41
47
funtestDeletePatch(){
42
48
@@ -107,6 +113,7 @@ class SecurityForbiddenOperationTest : IntegrationTestRestBase() {
107
113
val security = getSecurityRest()
108
114
val config = getEMConfig()
109
115
116
+
110
117
config.security =true
111
118
config.schemaOracles =false
112
119
@@ -129,6 +136,7 @@ class SecurityForbiddenOperationTest : IntegrationTestRestBase() {
129
136
val added = archive.addIfNeeded(ind)
130
137
assertTrue(added)
131
138
139
+
makeSureCanRunSecurityPhase()
132
140
val solution = security.applySecurityPhase()
133
141
134
142
val target = solution.individuals.find { it.hasAnyPotentialFault() }!!
@@ -186,7 +194,7 @@ class SecurityForbiddenOperationTest : IntegrationTestRestBase() {
186
194
val otherAdded = archive.addIfNeeded(other)
187
195
assertTrue(otherAdded)
188
196
189
-
197
+
makeSureCanRunSecurityPhase()
190
198
val solution = security.applySecurityPhase()
191
199
192
200
val target = solution.individuals.find { it.hasAnyPotentialFault() }!!
@@ -233,6 +241,7 @@ class SecurityForbiddenOperationTest : IntegrationTestRestBase() {
233
241
val added = archive.addIfNeeded(ind)
234
242
assertTrue(added)
235
243
244
+
makeSureCanRunSecurityPhase()
236
245
val solution = security.applySecurityPhase()
237
246
238
247
val target = solution.individuals.find { it.hasAnyPotentialFault() }!!
0 commit comments