fix: some more fix tests (#72)
## Description
<!-- **Please link some issue here describing what you are trying to achieve.**
In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->
relates to #1234
## Checklist
- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)
Reviewed-on: #72
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
This commit is contained in:
parent
7ee82366d7
commit
f05e90c35a
10 changed files with 137 additions and 243 deletions
|
|
@ -489,17 +489,18 @@ func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest,
|
|||
return
|
||||
}
|
||||
|
||||
roundTripper := core.NewRetryRoundTripper(
|
||||
baseRoundTripper,
|
||||
maxRetries,
|
||||
initialDelay,
|
||||
maxDelay,
|
||||
perTryTimeout,
|
||||
)
|
||||
//roundTripper := core.NewRetryRoundTripper(
|
||||
// baseRoundTripper,
|
||||
// maxRetries,
|
||||
// initialDelay,
|
||||
// maxDelay,
|
||||
// perTryTimeout,
|
||||
//)
|
||||
|
||||
// Make round tripper and custom endpoints available during DataSource and Resource
|
||||
// type Configure methods.
|
||||
providerData.RoundTripper = roundTripper
|
||||
// providerData.RoundTripper = roundTripper
|
||||
providerData.RoundTripper = baseRoundTripper
|
||||
resp.DataSourceData = providerData
|
||||
resp.ResourceData = providerData
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue