-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add method to ProviderInfo with better type safety #1415
- Loading branch information
Ronald Holshausen
committed
Aug 21, 2021
1 parent
4db1f83
commit b44e8d4
Showing
4 changed files
with
42 additions
and
18 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
18 changes: 18 additions & 0 deletions
18
provider/src/main/kotlin/au/com/dius/pact/provider/PactBrokerOptions.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,18 @@ | ||
package au.com.dius.pact.provider | ||
|
||
data class PactBrokerOptions @JvmOverloads constructor( | ||
/** | ||
* Enable pending pacts | ||
*/ | ||
val enablePending: Boolean = false, | ||
|
||
/** | ||
* Provider tags. Required if pending pacts are enabled | ||
*/ | ||
val providerTags: List<String> = listOf(), | ||
|
||
/** | ||
* Only include WIP pacts since the provided date | ||
*/ | ||
val includeWipPactsSince: String? = null | ||
) |
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
@uglyog instead of
mapOf()
we need to pass inoptions
. Currentlyauthentication
is missing, which is causing requests to the broker to fail