mirror of https://github.com/apache/nifi.git
NIFI-13365 - Fix unit tests running in kubernetes pod
This commit is contained in:
parent
0a5be35357
commit
61ce13c4f3
|
@ -37,6 +37,7 @@ public class ExternalHazelcastCacheManagerTest extends AbstractHazelcastCacheMan
|
|||
final Config config = new Config();
|
||||
config.getNetworkConfig().setPort(0);
|
||||
config.setClusterName("nifi");
|
||||
config.getNetworkConfig().getJoin().getAutoDetectionConfig().setEnabled(false);
|
||||
|
||||
hazelcastInstance = Hazelcast.newHazelcastInstance(config);
|
||||
super.setUp();
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.apache.nifi.components.ValidationResult;
|
|||
import org.apache.nifi.components.state.Scope;
|
||||
import org.apache.nifi.components.state.StateMap;
|
||||
import org.apache.nifi.components.state.StateProviderInitializationContext;
|
||||
import org.apache.nifi.kubernetes.client.ServiceAccountNamespaceProvider;
|
||||
import org.apache.nifi.logging.ComponentLog;
|
||||
import org.apache.nifi.parameter.ParameterLookup;
|
||||
import org.apache.nifi.util.MockProcessContext;
|
||||
|
@ -63,7 +64,7 @@ class KubernetesConfigMapStateProviderTest {
|
|||
|
||||
private static final String SECOND_VERSION = "2";
|
||||
|
||||
private static final String DEFAULT_NAMESPACE = "default";
|
||||
private static final String DEFAULT_NAMESPACE = new ServiceAccountNamespaceProvider().getNamespace();
|
||||
|
||||
private static final String COMPONENT_ID = "COMPONENT-ID";
|
||||
|
||||
|
|
Loading…
Reference in New Issue