/
SpringSpec.groovy
executable file
·96 lines (78 loc) · 1.98 KB
/
SpringSpec.groovy
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package org.zstack.testlib
/**
* Created by xing5 on 2017/2/14.
*/
class SpringSpec {
List<String> CORE_SERVICES = [
"HostManager.xml",
"ZoneManager.xml",
"ClusterManager.xml",
"PrimaryStorageManager.xml",
"BackupStorageManager.xml",
"ImageManager.xml",
"HostAllocatorManager.xml",
"ConfigurationManager.xml",
"VolumeManager.xml",
"NetworkManager.xml",
"VmInstanceManager.xml",
"AccountManager.xml",
"NetworkService.xml",
"volumeSnapshot.xml",
"tag.xml",
]
Set<String> xmls = []
boolean all
void include(String xml) {
xmls.add(xml)
}
void includeAll() {
all = true
}
void includeCoreServices() {
CORE_SERVICES.each { include(it) }
}
void nfsPrimaryStorage() {
include("NfsPrimaryStorage.xml")
}
void localStorage() {
include("localStorage.xml")
}
void vyos() {
include("ApplianceVmFacade.xml")
include("VirtualRouter.xml")
include("vyos.xml")
}
void virtualRouter() {
include("ApplianceVmFacade.xml")
include("VirtualRouter.xml")
include("NetworkService.xml")
include("vip.xml")
}
void sftpBackupStorage() {
include("SftpBackupStorage.xml")
}
void eip() {
include("vip.xml")
include("eip.xml")
}
void lb() {
include("vip.xml")
include("lb.xml")
}
void portForwarding() {
include("vip.xml")
include("PortForwarding.xml")
}
void kvm() {
include("Kvm.xml")
}
void ceph() {
include("ceph.xml")
}
void smp() {
include("sharedMountPointPrimaryStorage.xml")
}
void securityGroup() {
include("SecurityGroupManager.xml")
}
}