This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathidentifiers.go
844 lines (790 loc) · 28.7 KB
/
identifiers.go
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
// Copyright (C) 2020-2022 Red Hat, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
package identifier
import (
"github.com/test-network-function/test-network-function/pkg/tnf/dependencies"
)
const (
commandIdentifierURL = urlTests + "/command"
nodeselectorIdentifierURL = urlTests + "/nodeselector"
ipAddrIdentifierURL = urlTests + "/ipaddr"
nodesIdentifierURL = urlTests + "/nodes"
operatorIdentifierURL = urlTests + "/operator"
pingIdentifierURL = urlTests + "/ping"
podIdentifierURL = urlTests + "/container/pod"
versionIdentifierURL = urlTests + "/generic/version"
roleBindingIdentifierURL = urlTests + "/rolebinding"
clusterRoleBindingIdentifierURL = urlTests + "/clusterrolebinding"
nodePortIdentifierURL = urlTests + "/nodeport"
ImagePullPolicyIdentifierURL = urlTests + "/imagepullpolicy"
nodeNamesIdentifierURL = urlTests + "/nodenames"
nodeTaintedIdentifierURL = urlTests + "/nodetainted"
gracePeriodIdentifierURL = urlTests + "/gracePeriod"
podsetsIdentifierURL = urlTests + "/podsets"
deploymentsnodesIdentifierURL = urlTests + "/deploymentsnodes"
deploymentsdrainIdentifierURL = urlTests + "/deploymentsdrain"
ownersIdentifierURL = urlTests + "/owners"
cnfFsDiffURL = urlTests + "/generic/cnf_fs_diff"
podnodenameIdentifierURL = urlTests + "/podnodename"
nodemcnameIdentifierURL = urlTests + "/nodemcname"
mckernelargumentsIdentifierURL = urlTests + "/mckernelarguments"
currentKernelCmdlineArgsIdentifierURL = urlTests + "/currentKernelCmdlineArgs"
grubKernelCmdlineArgsIdentifierURL = urlTests + "/grubKernelCmdlineArgs"
sysctlConfigFilesListIdentifierURL = urlTests + "/sysctlConfigFilesList"
sysctlAllConfigsArgsURL = urlTests + "/sysctlAllConfigsArgs"
uncordonNodeIdentifierURL = urlTests + "/node/uncordon"
checkSubscriptionIdentifierURL = urlTests + "/operator/check-subscription"
nodeDebugIdentifierURL = urlTests + "/nodedebug"
loggingIdentifierURL = urlTests + "/logging"
podantiaffinityIdentifierURL = urlTests + "/testPodHighAvailability"
shutdownIdentifierURL = urlTests + "/shutdown"
livenessIdentifierURL = urlTests + "/liveness"
readinessIdentifierURL = urlTests + "/readiness"
scalingIdentifierURL = urlTests + "/scaling"
csiDriverIdentifierURL = urlTests + "/csiDriver"
clusterVersionIdentifierURL = urlTests + "/clusterVersion"
crdStatusExistenceIdentifierURL = urlTests + "/crdStatusExistence"
daemonSetIdentifierURL = urlTests + "/daemonset"
automountserviceIdentifierURL = urlTests + "/automountservice"
versionOne = "v1.0.0"
)
const (
// Normative is the test type used for a test that returns normative results.
Normative = "normative"
// Informative is the test type used for a test that returns informative results.
Informative = "informative"
)
// TestCatalogEntry is a container for required test facets.
type TestCatalogEntry struct {
// Identifier is the unique test identifier.
Identifier Identifier `json:"identifier" yaml:"identifier"`
// Description is a helpful description of the purpose of the test.
Description string `json:"description" yaml:"description"`
// Type is the type of the test (i.e., normative).
Type string `json:"type" yaml:"type"`
// IntrusionSettings is used to specify test intrusion behavior into a target system.
IntrusionSettings IntrusionSettings `json:"intrusionSettings" yaml:"intrusionSettings"`
// BinaryDependencies tracks the needed binaries to complete tests, such as `ping`.
BinaryDependencies []string `json:"binaryDependencies" yaml:"binaryDependencies"`
}
// IntrusionSettings is used to specify test intrusion behavior into a target system.
type IntrusionSettings struct {
// ModifiesSystem records whether the test makes changes to target systems.
ModifiesSystem bool `json:"modifiesSystem" yaml:"modifiesSystem"`
// ModificationIsPersistent records whether the test makes a modification to the system that persists after the test
// completes. This is not always negative, and could involve something like setting up a tunnel that is used in
// future tests.
ModificationIsPersistent bool `json:"modificationIsPersistent" yaml:"modificationIsPersistent"`
}
// Catalog is the test catalog.
var Catalog = map[string]TestCatalogEntry{
commandIdentifierURL: {
Identifier: CommandIdentifier,
Description: "A generic test used with any command and would match any output. The caller is responsible for interpreting the output and extracting data from it.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{},
},
ipAddrIdentifierURL: {
Identifier: IPAddrIdentifier,
Description: "A generic test used to derive the default network interface IP address of a target container.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.IPBinaryName,
},
},
nodesIdentifierURL: {
Identifier: NodesIdentifier,
Description: "Polls the state of the OpenShift cluster nodes using \"oc get nodes -o json\".",
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
operatorIdentifierURL: {
Identifier: OperatorIdentifier,
Description: "An operator-specific test used to exercise the behavior of a given operator. In the current " +
"offering, we check if the operator ClusterServiceVersion (CSV) is installed properly. A CSV is a YAML " +
"manifest created from Operator metadata that assists the Operator Lifecycle Manager (OLM) in running " +
"the Operator.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.JqBinaryName,
dependencies.OcBinaryName,
},
},
pingIdentifierURL: {
Identifier: PingIdentifier,
Description: "A generic test used to test ICMP connectivity from a source machine/container to a target destination.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.PingBinaryName,
},
},
podIdentifierURL: {
Identifier: PodIdentifier,
Description: "A container-specific test suite used to verify various aspects of the underlying container.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.JqBinaryName,
dependencies.OcBinaryName,
},
},
versionIdentifierURL: {
Identifier: VersionIdentifier,
Description: "A generic test used to determine if a target container/machine is based on RHEL.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.CatBinaryName,
},
},
cnfFsDiffURL: {
Identifier: CnfFsDiffIdentifier,
Description: "A test used to check if there were no installation during container runtime",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.GrepBinaryName,
dependencies.CutBinaryName,
},
},
roleBindingIdentifierURL: {
Identifier: RoleBindingIdentifier,
Description: "A generic test used to test RoleBindings of CNF pod's ServiceAccount.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.CatBinaryName,
dependencies.OcBinaryName,
},
},
clusterRoleBindingIdentifierURL: {
Identifier: ClusterRoleBindingIdentifier,
Description: "A generic test used to test ClusterRoleBindings of CNF pod's ServiceAccount.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
nodePortIdentifierURL: {
Identifier: NodePortIdentifier,
Description: "A generic test used to test services of CNF pod's namespace.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.GrepBinaryName,
},
},
ImagePullPolicyIdentifierURL: {
Identifier: ImagePullPolicyIdentifier,
Description: "A generic test used to get Image Pull Policy type.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
nodeNamesIdentifierURL: {
Identifier: NodeNamesIdentifier,
Description: "A generic test used to get node names",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
nodeTaintedIdentifierURL: {
Identifier: NodeTaintedIdentifier,
Description: "A generic test used to test whether node is tainted",
Type: Informative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.CatBinaryName,
dependencies.EchoBinaryName,
},
},
gracePeriodIdentifierURL: {
Identifier: GracePeriodIdentifier,
Description: "A generic test used to extract the CNF pod's terminationGracePeriod.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.GrepBinaryName,
dependencies.CutBinaryName,
},
},
podsetsIdentifierURL: {
Identifier: PodSetsIdentifier,
Description: "A generic test used to read namespace's deployments/statefulsets",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
podnodenameIdentifierURL: {
Identifier: PodNodeNameIdentifier,
Description: "A generic test used to get a pod's node",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
deploymentsnodesIdentifierURL: {
Identifier: DeploymentsNodesIdentifier,
Description: "A generic test used to read node names of pods owned by deployments in namespace",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.GrepBinaryName,
},
},
nodeselectorIdentifierURL: {
Identifier: NodeSelectorIdentifier,
Description: "A generic test used to verify a pod's nodeSelector and nodeAffinity configuration",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.GrepBinaryName,
},
},
nodemcnameIdentifierURL: {
Identifier: NodeMcNameIdentifier,
Description: "A generic test used to get a node's current mc",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.GrepBinaryName,
},
},
deploymentsdrainIdentifierURL: {
Identifier: DeploymentsNodesIdentifier,
Description: "A generic test used to drain node from its deployment pods",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: true,
ModificationIsPersistent: true,
},
BinaryDependencies: []string{
dependencies.JqBinaryName,
dependencies.EchoBinaryName,
},
},
mckernelargumentsIdentifierURL: {
Identifier: McKernelArgumentsIdentifier,
Description: "A generic test used to get an mc's kernel arguments",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.JqBinaryName,
dependencies.EchoBinaryName,
},
},
ownersIdentifierURL: {
Identifier: OwnersIdentifier,
Description: "A generic test used to verify pod is managed by a ReplicaSet/StatefulSet",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.CatBinaryName,
},
},
currentKernelCmdlineArgsIdentifierURL: {
Identifier: CurrentKernelCmdlineArgsURLIdentifier,
Description: "A generic test used to get node's /proc/cmdline",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.CatBinaryName,
},
},
grubKernelCmdlineArgsIdentifierURL: {
Identifier: GrubKernelCmdlineArgsURLIdentifier,
Description: "A generic test used to get node's next boot kernel args",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.LsBinaryName,
dependencies.SortBinaryName,
dependencies.HeadBinaryName,
dependencies.CutBinaryName,
dependencies.OcBinaryName,
},
},
sysctlConfigFilesListIdentifierURL: {
Identifier: SysctlConfigFilesListURLIdentifier,
Description: "A generic test used to get node's list of sysctl config files",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.CatBinaryName,
},
},
uncordonNodeIdentifierURL: {
Identifier: UncordonNodeURLIdentifier,
Description: "A generic test used to uncordon a node",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: true,
ModificationIsPersistent: true,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
checkSubscriptionIdentifierURL: {
Identifier: CheckSubscriptionURLIdentifier,
Description: "A test used to check the subscription of a given operator",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
nodeDebugIdentifierURL: {
Identifier: NodeDebugIdentifier,
Description: "A generic test used to execute a command in a node",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.EchoBinaryName,
},
},
loggingIdentifierURL: {
Identifier: LoggingURLIdentifier,
Description: "A test used to check logs are redirected to stderr/stdout",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.WcBinaryName,
},
},
podantiaffinityIdentifierURL: {
Identifier: PodAntiAffinityIdentifier,
Description: "A generic test used to check pod's replica and podAntiAffinity configuration in high availability mode",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
shutdownIdentifierURL: {
Identifier: ShutdownURLIdentifier,
Description: "A test used to check pre-stop lifecycle is defined",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
sysctlAllConfigsArgsURL: {
Identifier: SysctlAllConfigsArgsIdentifier,
Description: "A test used to find all sysctl configuration args",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.SysctlBinaryName,
},
},
scalingIdentifierURL: {
Identifier: ScalingIdentifier,
Description: "A test to check the deployments scale in/out. The tests issues the oc scale " +
"command on a deployment for a given number of replicas and checks whether the command output " +
"is valid.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: true,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
csiDriverIdentifierURL: {
Identifier: CSIDriverIdentifier,
Description: "extracts the csi driver info in the cluster",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
clusterVersionIdentifierURL: {
Identifier: ClusterVersionIdentifier,
Description: "Extracts OCP versions from the cluster",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
crdStatusExistenceIdentifierURL: {
Identifier: CrdStatusExistenceIdentifier,
Description: "Checks whether a give CRD has status subresource specification.",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
dependencies.JqBinaryName,
},
},
daemonSetIdentifierURL: {
Identifier: DaemonSetIdentifier,
Description: "check whether a given daemonset was deployed successfully",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
automountserviceIdentifierURL: {
Identifier: AutomountServiceIdentifier,
Description: "check if automount service account token is set to false",
Type: Normative,
IntrusionSettings: IntrusionSettings{
ModifiesSystem: false,
ModificationIsPersistent: false,
},
BinaryDependencies: []string{
dependencies.OcBinaryName,
},
},
}
// TestIDBaseDomain is the BaseDomain for the IDs of test cases building blocks
var TestIDBaseDomain = urlTests
// CommandIdentifier is the Identifier used to represent the generic command test case.
var CommandIdentifier = Identifier{
URL: commandIdentifierURL,
SemanticVersion: versionOne,
}
// IPAddrIdentifier is the Identifier used to represent the generic IP Addr test case.
var IPAddrIdentifier = Identifier{
URL: ipAddrIdentifierURL,
SemanticVersion: versionOne,
}
// NodesIdentifier is the Identifier used to represent the nodes test case.
var NodesIdentifier = Identifier{
URL: nodesIdentifierURL,
SemanticVersion: versionOne,
}
// OperatorIdentifier is the Identifier used to represent the operator-specific test suite.
var OperatorIdentifier = Identifier{
URL: operatorIdentifierURL,
SemanticVersion: versionOne,
}
// PingIdentifier is the Identifier used to represent the generic Ping test.
var PingIdentifier = Identifier{
URL: pingIdentifierURL,
SemanticVersion: versionOne,
}
// PodIdentifier is the Identifier used to represent the container-specific test suite.
var PodIdentifier = Identifier{
URL: podIdentifierURL,
SemanticVersion: versionOne,
}
// VersionIdentifier is the Identifier used to represent the generic container base image test.
var VersionIdentifier = Identifier{
URL: versionIdentifierURL,
SemanticVersion: versionOne,
}
// CnfFsDiffIdentifier is the Identifier used to represent the generic cnf_fs_diff test.
var CnfFsDiffIdentifier = Identifier{
URL: cnfFsDiffURL,
SemanticVersion: versionOne,
}
// RoleBindingIdentifier is the Identifier used to represent the generic roleBinding test.
var RoleBindingIdentifier = Identifier{
URL: roleBindingIdentifierURL,
SemanticVersion: versionOne,
}
// ClusterRoleBindingIdentifier is the Identifier used to represent the generic clusterRoleBinding test.
var ClusterRoleBindingIdentifier = Identifier{
URL: clusterRoleBindingIdentifierURL,
SemanticVersion: versionOne,
}
// NodePortIdentifier is the Identifier used to represent the generic NodePort test.
var NodePortIdentifier = Identifier{
URL: nodePortIdentifierURL,
SemanticVersion: versionOne,
}
var ImagePullPolicyIdentifier = Identifier{
URL: ImagePullPolicyIdentifierURL,
SemanticVersion: versionOne,
}
// NodeNamesIdentifier is the Identifier used to represent the generic NodeNames test.
var NodeNamesIdentifier = Identifier{
URL: nodeNamesIdentifierURL,
SemanticVersion: versionOne,
}
// NodeTaintedIdentifier is the Identifier used to represent the generic NodeTainted test.
var NodeTaintedIdentifier = Identifier{
URL: nodeTaintedIdentifierURL,
SemanticVersion: versionOne,
}
// GracePeriodIdentifier is the Identifier used to represent the generic GracePeriod test.
var GracePeriodIdentifier = Identifier{
URL: gracePeriodIdentifierURL,
SemanticVersion: versionOne,
}
// PodSetsIdentifier is the Identifier used to represent the generic PodSets test.
var PodSetsIdentifier = Identifier{
URL: podsetsIdentifierURL,
SemanticVersion: versionOne,
}
// DeploymentsNodesIdentifier is the Identifier used to represent the generic DeploymentsNodes test.
var DeploymentsNodesIdentifier = Identifier{
URL: deploymentsnodesIdentifierURL,
SemanticVersion: versionOne,
}
// DeploymentsDrainIdentifier is the Identifier used to represent the generic DeploymentsDrain test.
var DeploymentsDrainIdentifier = Identifier{
URL: deploymentsdrainIdentifierURL,
SemanticVersion: versionOne,
}
// OwnersIdentifier is the Identifier used to represent the generic Owners test.
var OwnersIdentifier = Identifier{
URL: ownersIdentifierURL,
SemanticVersion: versionOne,
}
// NodeSelectorIdentifier is the Identifier used to represent the generic NodeSelector test.
var NodeSelectorIdentifier = Identifier{
URL: nodeselectorIdentifierURL,
SemanticVersion: versionOne,
}
// PodNodeNameIdentifier is the Identifier used to represent the generic PodNodeName test.
var PodNodeNameIdentifier = Identifier{
URL: podnodenameIdentifierURL,
SemanticVersion: versionOne,
}
// NodeMcNameIdentifier is the Identifier used to represent the generic NodeMcName test.
var NodeMcNameIdentifier = Identifier{
URL: nodemcnameIdentifierURL,
SemanticVersion: versionOne,
}
// McKernelArgumentsIdentifier is the Identifier used to represent the generic McKernelArguments test.
var McKernelArgumentsIdentifier = Identifier{
URL: mckernelargumentsIdentifierURL,
SemanticVersion: versionOne,
}
// CurrentKernelCmdlineArgsURLIdentifier is the Identifier used to represent the generic getCurrentKernelCmdlineArgs test.
var CurrentKernelCmdlineArgsURLIdentifier = Identifier{
URL: currentKernelCmdlineArgsIdentifierURL,
SemanticVersion: versionOne,
}
// GrubKernelCmdlineArgsURLIdentifier is the Identifier used to represent the generic getCurrentKernelCmdlineArgs test.
var GrubKernelCmdlineArgsURLIdentifier = Identifier{
URL: grubKernelCmdlineArgsIdentifierURL,
SemanticVersion: versionOne,
}
// SysctlConfigFilesListURLIdentifier is the Identifier used to represent the generic getCurrentKernelCmdlineArgs test.
var SysctlConfigFilesListURLIdentifier = Identifier{
URL: sysctlConfigFilesListIdentifierURL,
SemanticVersion: versionOne,
}
// UncordonNodeURLIdentifier is the Identifier used to represent a test that uncordons a node.
var UncordonNodeURLIdentifier = Identifier{
URL: uncordonNodeIdentifierURL,
SemanticVersion: versionOne,
}
// CheckSubscriptionURLIdentifier is the Identifier used to represent a test that checks the subscription of an operator.
var CheckSubscriptionURLIdentifier = Identifier{
URL: checkSubscriptionIdentifierURL,
SemanticVersion: versionOne,
}
// NodeDebugIdentifier is the Identifier used to represent the generic NodeDebug test.
var NodeDebugIdentifier = Identifier{
URL: nodeDebugIdentifierURL,
SemanticVersion: versionOne,
}
// LoggingURLIdentifier is the Identifier used to represent a test that checks if the stdout/stderr is used
var LoggingURLIdentifier = Identifier{
URL: loggingIdentifierURL,
SemanticVersion: versionOne,
}
// PodAntiAffinityIdentifier is the Identifier used to represent the generic podAffinity test.
var PodAntiAffinityIdentifier = Identifier{
URL: podantiaffinityIdentifierURL,
SemanticVersion: versionOne,
}
// ShutdownURLIdentifier is the Identifier used to represent a test that checks if pre-stop lifecyle is defined
var ShutdownURLIdentifier = Identifier{
URL: shutdownIdentifierURL,
SemanticVersion: versionOne,
}
// LivenessURLIdentifier is the Identifier used to represent a test that checks if liveness is defined
var LivenessURLIdentifier = Identifier{
URL: livenessIdentifierURL,
SemanticVersion: versionOne,
}
// ReadinessURLIdentifier is the Identifier used to represent a test that checks if readiness is defined
var ReadinessURLIdentifier = Identifier{
URL: readinessIdentifierURL,
SemanticVersion: versionOne,
}
// SysctlAllConfigsArgsIdentifier is the Identifier used to represent a test that checks all args in all sysctl conf files ordered
// in the same way as they are loaded by the os
var SysctlAllConfigsArgsIdentifier = Identifier{
URL: sysctlAllConfigsArgsURL,
SemanticVersion: versionOne,
}
// ScalingIdentifier is the Identifier used to represent a test that checks deployments scale in/out
var ScalingIdentifier = Identifier{
URL: scalingIdentifierURL,
SemanticVersion: versionOne,
}
// CSIDriverIdentifier is the Identifier used to represent the CSI driver test case.
var CSIDriverIdentifier = Identifier{
URL: csiDriverIdentifierURL,
SemanticVersion: versionOne,
}
// ClusterVersionIdentifier is the Identifier used to represent the OCP versions test case.
var ClusterVersionIdentifier = Identifier{
URL: clusterVersionIdentifierURL,
SemanticVersion: versionOne,
}
// CrdStatusExistenceIdentifier is the Identifier used to represent the generic test for CRD status spec existence.
var CrdStatusExistenceIdentifier = Identifier{
URL: crdStatusExistenceIdentifierURL,
SemanticVersion: versionOne,
}
var DaemonSetIdentifier = Identifier{
URL: daemonSetIdentifierURL,
SemanticVersion: versionOne,
}
var AutomountServiceIdentifier = Identifier{
URL: automountserviceIdentifierURL,
SemanticVersion: versionOne,
}