-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add config update hook to cdk integration tests (#50849)
- Loading branch information
1 parent
d90962c
commit 496dbd3
Showing
5 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...k/core/load/src/testFixtures/kotlin/io/airbyte/cdk/load/test/util/ConfigurationUpdater.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2025 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.cdk.load.test.util | ||
|
||
/** Utility that may update/modify a connector configuration for test purposes. */ | ||
interface ConfigurationUpdater { | ||
|
||
/** | ||
* May modify one or more entry in the provided configuration. | ||
* @param config The connector configuration. | ||
* @return The potentially modified configuration. | ||
*/ | ||
fun update(config: String): String | ||
} | ||
|
||
/** | ||
* Basic implementation of the [ConfigurationUpdater] interface that does not modify the | ||
* configuration. | ||
*/ | ||
object FakeConfigurationUpdater : ConfigurationUpdater { | ||
override fun update(config: String): String = config | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters