-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainAcceptanceTest.kt
41 lines (39 loc) · 1.45 KB
/
MainAcceptanceTest.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package mikufan.cx.yc.cliapp
import io.kotest.core.extensions.Extension
import io.kotest.core.spec.style.ShouldSpec
import mikufan.cx.yc.cliapp.util.EnabledByEnvExtension
import mikufan.cx.yc.cliapp.util.SpringBootTestWithTestProfile
/**
* This must be run with custom YouTrack URI and bearer token, see [EnabledByEnvExtension]
* @author CX无敌
* 2023-01-01
*/
@SpringBootTestWithTestProfile(
customProperties = [
"cliapp.search.query=#{All with Dues}",
"cliapp.datetime.event-type=ONE_DAY_EVENT",
"cliapp.datetime.field-names=Due Date",
"cliapp.alarm.period-field-name=Estimation",
"cliapp.alarm.is-negative-period=true",
"cliapp.alarm.default-duration=-2h",
"cliapp.other-mapping.list[0].from-field-name=Assignee",
"cliapp.other-mapping.list[0].default-value=Unassigned",
"cliapp.other-mapping.list[0].to-field-name=ATTENDEE",
"cliapp.other-mapping.list[1].from-field-name=State",
"cliapp.other-mapping.list[1].default-value=Unresolved",
"cliapp.other-mapping.list[1].to-field-name=STATUS",
"cliapp.other-mapping.list[2].default-value=OPAQUE",
"cliapp.other-mapping.list[2].to-field-name=TRANSP",
"cliapp.other-mapping.list[3].from-field-name=Submodule",
"cliapp.other-mapping.list[3].to-field-name=CATEGORIES",
],
)
class Acceptance1Test(
private val main: Main,
) : ShouldSpec({
should("run") {
main.run()
}
}) {
override fun extensions(): List<Extension> = listOf(EnabledByEnvExtension)
}