def new_cluster_configuration(self, request: FixtureRequest): # Overriding the default BaseTest.new_cluster_configuration fixture to set custom configs. config = ClusterConfig() for fixture_name in ["openshift_version", "network_type", "is_static_ip", "olm_operators"]: with suppress(FixtureLookupError): if hasattr(config, fixture_name): config.set_value(fixture_name, request.getfixturevalue(fixture_name)) else: raise AttributeError(f"No attribute name {fixture_name} in ClusterConfig object type") config.trigger(get_default_triggers()) return config
def new_cluster_configuration(self, request: FixtureRequest): # Overriding the default BaseTest.new_cluster_configuration fixture to set custom configs. config = ClusterConfig() for fixture_name in [ "openshift_version", "network_type", "is_static_ip" ]: with suppress(FixtureLookupError): setattr(config, fixture_name, request.getfixturevalue(fixture_name)) config.trigger() return config