Added allow-insecure flag (#58)
This commit is contained in:
parent
ba77335753
commit
e57261ce12
4 changed files with 17 additions and 1 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
|
@ -1,6 +1,17 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
|
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
|
||||||
|
|
||||||
|
## [0.8.0] - 2202-05-25
|
||||||
|
### Added
|
||||||
|
- [#58](https://github.com/javahippie/clj-test-containers/issues/58): Add new `allowInsecure` flag to the HTTP wait strategy
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- [#57](https://github.com/javahippie/clj-test-containers/issues/57): Upgrade to testcontainers-java 1.17.2
|
||||||
|
|
||||||
|
## [0.7.0] - 2022-04-23
|
||||||
|
### Changed
|
||||||
|
- [#56](https://github.com/javahippie/clj-test-containers/issues/56): Update to Testcontainers 1.17.1
|
||||||
|
|
||||||
## [0.6.0] - 2022-03-26
|
## [0.6.0] - 2022-03-26
|
||||||
### Changed
|
### Changed
|
||||||
- [#55](https://github.com/javahippie/clj-test-containers/issues/55): Upgrade to latest Testcontainers version
|
- [#55](https://github.com/javahippie/clj-test-containers/issues/55): Upgrade to latest Testcontainers version
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ criteria is met.
|
||||||
| method | String | The HTTP method to use (get, post, put...) |
|
| method | String | The HTTP method to use (get, post, put...) |
|
||||||
| status-codes | seq of int | The status codes which mark a successful request |
|
| status-codes | seq of int | The status codes which mark a successful request |
|
||||||
| tls | boolean | Should TLS be used? |
|
| tls | boolean | Should TLS be used? |
|
||||||
|
| allow-insecure | boolean | Should insecure HTTP endpoints be trusted? |
|
||||||
| read-timeout | long | The duration in seconds the HTTP may take |
|
| read-timeout | long | The duration in seconds the HTTP may take |
|
||||||
| basic-credentials | Map | {:username "User" :password "Password"} |
|
| basic-credentials | Map | {:username "User" :password "Password"} |
|
||||||
| headers | Map | HTTP Headers, e.g. {"Accept" "application/json"} |
|
| headers | Map | HTTP Headers, e.g. {"Accept" "application/json"} |
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(defproject clj-test-containers "0.7.0"
|
(defproject clj-test-containers "0.7.1-SNAPSHOT"
|
||||||
:description "A lightweight, unofficial wrapper around the Testcontainers Java library"
|
:description "A lightweight, unofficial wrapper around the Testcontainers Java library"
|
||||||
|
|
||||||
:url "https://github.com/javahippie/clj-test-containers"
|
:url "https://github.com/javahippie/clj-test-containers"
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,7 @@
|
||||||
method
|
method
|
||||||
status-codes
|
status-codes
|
||||||
tls
|
tls
|
||||||
|
allow-insecure
|
||||||
read-timeout
|
read-timeout
|
||||||
basic-credentials
|
basic-credentials
|
||||||
headers
|
headers
|
||||||
|
|
@ -120,6 +121,9 @@
|
||||||
(when tls
|
(when tls
|
||||||
(.usingTls for-http))
|
(.usingTls for-http))
|
||||||
|
|
||||||
|
(when allow-insecure
|
||||||
|
(.allowInsecure for-http))
|
||||||
|
|
||||||
(when read-timeout
|
(when read-timeout
|
||||||
(.withReadTimeout for-http (Duration/ofSeconds read-timeout)))
|
(.withReadTimeout for-http (Duration/ofSeconds read-timeout)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue