Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use valid label values in KafkaST tests #10708

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,16 @@ void testLabelsExistenceAndManipulation() {

// label key and values to be used as part of kafka CR
final String firstKafkaLabelKey = "first-kafka-label-key";
final String firstKafkaLabelValue = "first-kafka-label-value.";
final String firstKafkaLabelValue = "first-kafka-label-value";
final String secondKafkaLabelKey = "second-kafka-label-key";
final String secondKafkaLabelValue = "second-kafka-label-value.";
final String secondKafkaLabelValue = "second-kafka-label-value";
final Map<String, String> customSpecifiedLabels = new HashMap<>();
customSpecifiedLabels.put(firstKafkaLabelKey, firstKafkaLabelValue);
customSpecifiedLabels.put(secondKafkaLabelKey, secondKafkaLabelValue);

// label key and value used in addition for while creating kafka CR (as part of PVCs label and annotation)
final String pvcLabelOrAnnotationKey = "pvc-label-annotation-key";
final String pvcLabelOrAnnotationValue = "pvc-label-annotation-value.";
final String pvcLabelOrAnnotationValue = "pvc-label-annotation-value";
final Map<String, String> customSpecifiedLabelOrAnnotationPvc = new HashMap<>();
customSpecifiedLabelOrAnnotationPvc.put(pvcLabelOrAnnotationKey, pvcLabelOrAnnotationValue);

Expand Down Expand Up @@ -761,7 +761,7 @@ void testLabelsExistenceAndManipulation() {
// key-value pairs modification and addition of user specified labels for kafka CR metadata
final String firstKafkaLabelValueModified = "first-kafka-label-value-modified";
final String thirdKafkaLabelKey = "third-kafka-label-key";
final String thirdKafkaLabelValue = "third-kafka-label-value.";
final String thirdKafkaLabelValue = "third-kafka-label-value";
customSpecifiedLabels.replace(firstKafkaLabelKey, firstKafkaLabelValueModified);
customSpecifiedLabels.put(thirdKafkaLabelKey, thirdKafkaLabelValue);
LOGGER.info("New values of labels which are to modify Kafka CR after their replacement and addition of new one are following {}", customSpecifiedLabels);
Expand Down
Loading