DBZ-3785 Fix configuration property resolution

This commit is contained in:
Chris Cranford 2021-10-01 12:43:09 -04:00 committed by Gunnar Morling
parent b356530c8a
commit e6fea8d7bc
7 changed files with 49 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}