DBZ-3785 Fix configuration property resolution
This commit is contained in:
parent
b356530c8a
commit
e6fea8d7bc
@ -40,6 +40,13 @@ public EventHubsTestConfigSource() {
|
||||
config = eventHubsTest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
|
||||
public static String getEventHubsConnectionString() {
|
||||
return System.getProperty(EVENTHUBS_CONNECTION_STRING_SYSTEM_PROPERTY_NAME);
|
||||
}
|
||||
|
@ -32,4 +32,11 @@ public KafkaTestConfigSource() {
|
||||
|
||||
config = kafkaConfig;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,11 @@ public KinesisTestConfigSource() {
|
||||
|
||||
config = kinesisTest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
}
|
||||
|
@ -32,4 +32,11 @@ public NatsStreamingTestConfigSource() {
|
||||
|
||||
config = natsStreamingTest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
}
|
||||
|
@ -28,4 +28,11 @@ public PubSubTestConfigSource() {
|
||||
|
||||
config = pubsubTest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
}
|
@ -28,4 +28,11 @@ public PulsarTestConfigSource() {
|
||||
|
||||
config = pulsarTest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,11 @@ public RedisTestConfigSource() {
|
||||
|
||||
config = redisTest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrdinal() {
|
||||
// Configuration property precedence is based on ordinal values and since we override the
|
||||
// properties in TestConfigSource, we should give this a higher priority.
|
||||
return super.getOrdinal() + 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user