@@ -53,18 +53,7 @@ var _ = g.Describe("[Suite:openshift/machine-config-operator/disruptive][sig-mco
5353 })
5454
5555 g .It ("[Suite:openshift/conformance/parallel]Should have MCN properties matching associated node properties for nodes in default MCPs [apigroup:machineconfiguration.openshift.io]" , func () {
56- if IsSingleNode (oc ) || IsTwoNode (oc ) { //handle SNO & two-node clusters
57- // In SNO and standard two-node openshift clusters, the nodes have both worker and master roles, but are a part
58- // of the master MCP. Thus, the tests for these clusters will be limited to checking master MCP association.
59- ValidateMCNPropertiesByMCPs (oc , []string {master })
60- } else if IsTwoNodeArbiter (oc ) { //handle two-node arbiter clusters
61- // In two-node arbiter openshift clusters, there are two nodes have both worker and master roles, but are a part
62- // of the master MCP. There is also a third "arbiter" node. Thus, these clusters should be tests for both master
63- // and arbiter MCP association.
64- ValidateMCNPropertiesByMCPs (oc , []string {master , arbiter })
65- } else { //handle standard clusters
66- ValidateMCNPropertiesByMCPs (oc , []string {master , worker })
67- }
56+ ValidateMCNPropertiesByMCPs (oc )
6857 })
6958
7059 g .It ("[Suite:openshift/conformance/serial][Serial]Should have MCN properties matching associated node properties for nodes in custom MCPs [apigroup:machineconfiguration.openshift.io]" , func () {
@@ -108,14 +97,16 @@ var _ = g.Describe("[Suite:openshift/machine-config-operator/disruptive][sig-mco
10897})
10998
11099// `ValidateMCNPropertiesByMCPs` checks that MCN properties match the corresponding node properties
111- // for a random node in each of the desired MCPs.
112- func ValidateMCNPropertiesByMCPs (oc * exutil.CLI , poolNames []string ) {
113- framework .Logf ("Validating MCN properties for node(s) in pool(s) '%v'." , poolNames )
114-
100+ // for a random node in each MCP in the cluster with nodes.
101+ func ValidateMCNPropertiesByMCPs (oc * exutil.CLI ) {
115102 // Create client set for test
116103 clientSet , clientErr := machineconfigclient .NewForConfig (oc .KubeFramework ().ClientConfig ())
117104 o .Expect (clientErr ).NotTo (o .HaveOccurred (), "Error creating client set for test." )
118105
106+ // Get MCPs to test for cluster
107+ poolNames := GetRolesToTest (oc , clientSet )
108+ framework .Logf ("Validating MCN properties for node(s) in pool(s) '%v'." , poolNames )
109+
119110 // Validate MCN associated with node in each desired MCP
120111 for _ , poolName := range poolNames {
121112 framework .Logf ("Validating MCN properties for %v node." , poolName )
0 commit comments