Dale Hui
8bc2777f7e
Update docker client usage with breaking change
2021-10-12 22:11:20 -07:00
Dale Hui
94dabb7021
Update golangci-lint to v1.20.0
2019-10-12 15:14:27 -07:00
Sebastiaan van Stijn and Dale Hui
1039d658e9
Docker: restore "from env" behavior, and perform API version negotiation ( #270 )
...
* NewDockerContainer: restore "from env" behavior
commit 7154264d4c replaced the deprecated
`dockerclient.NewEnvClient` with `dockerclient.NewClientWithOpts`, but
did not add the `FromEnv` option to keep the old behavior.
Signed-off-by: Sebastiaan van Stijn <[email protected] >
* NewDockerContainer: use API version negotiation
This helps in situations where the daemon is older than
the API client. API version negotiation checks the maximum
supported API version by the daemon, and downgrades to that
API version if needed.
Signed-off-by: Sebastiaan van Stijn <[email protected] >
2019-08-20 08:42:07 -07:00
Dale Hui
cabafa01a7
Mark testing package as deprecated
2019-05-19 16:52:41 -07:00
Kirill Muratov and Dale Hui
8afa5fa221
Enabled maligned, staticcheck and errcheck linters ( #206 )
...
* Enabled maligned check
* Enabled staticcheck
* Fixes for golint
* Enabled errcheck linter
* Added fixes for error check
* Added errcheck for tests
* Fixed test
* Increased golangci-lint deadline for travis
* Increased golangci-lint deadline for travis
* Decreased golangci-lint deadline for travis
* Revert for backward compatibility
* Using log.Println() instead of fmt.Println()
* Handling os.RemoveAll() errors
* Using t.Error(error) instead of t.Errorf("%v", err)
* Using t.Fatal(error) instead of t.Fatalf("%v", err)
* Using fmt.Sprint(sum) instead of t.Srintf("%v", sum)
* Refactoring
* Revert for backward compatibility
* Revert
* go mod tidy
* Added error logging
* Added error logging
* Added error handling
* Added error handling
* Added error logging
* Fix error logging
* Added error handling
* Fix
* Added logging for migr.Buffer()
* Fixes
* Firebird test disabled
* Fixed nolint comment
* Updated firebird docker image version
* Disabled test for firebird 2.5
* Fixed // nolint
2019-04-26 15:47:16 -07:00
Dale Hui
edfd671802
Update golangci-lint config and implore contributors to use it
...
- Run golangci-lint on tests and fix found issues
2019-03-28 18:55:12 -07:00
Kirill Muratov
7154264d4c
Fixed dockerclient.NewEnvClient is depricated
2019-03-22 22:47:24 +03:00
Dale Hui
18e785b618
Fix memory leak in tests
...
- Stop leaking tickers. As the docs state, using time.Tick() will leak tickers,
so use time.NewTicker() with time.Ticker.Stop().
- Be more efficient by using time.NewTimer() with time.Timer.Stop() instead of time.After().
2019-01-05 13:52:25 -08:00
Dale Hui
c132bcc59f
Remove unused invalid formatter
2018-01-21 02:04:36 -08:00
Dale Hui
80123f06de
Remove redundant delay since the readyFn is sufficient
2018-01-20 00:11:35 -08:00
Dale Hui
ab3ae8d9a7
Update all *DockerContainer receivers to handle nil
...
- Use errors.New() instead of fmt.Errorf() if no formatter string is needed
- Spacing changes due to `go fmt`
2018-01-19 14:22:55 -08:00
Taylor Wrobel
a4e14ee57e
Merge port mapping helper functions into one
2017-07-07 23:12:07 -07:00
Taylor Wrobel
849e16ee0a
Support running docker with commands and handling multiple exposed ports
...
Adds the ability to specify a series of commands to run as part
of the docker image execution, and allows for retrieving a mapping
of an exposed via the port bound within the container.
2017-07-07 23:12:07 -07:00
Jolan Malassigne
9394549cf4
add cassandra driver and function to retrieve networkSettings to get port bound to 9042
2017-05-31 10:05:56 +02:00
Matthias Kadenbach
54bd45727f
add mysql driver, add ENV to docker containers
2017-02-28 15:10:56 -08:00
Matthias Kadenbach
3f0ef8a7f8
add comment
2017-02-16 11:18:02 -08:00
Matthias Kadenbach
3761178d4f
add example for parallelTest
2017-02-09 19:52:50 -08:00
Matthias Kadenbach
3cc548ba2a
fixing travis
2017-02-08 01:49:57 -08:00
Matthias Kadenbach
b3f9ba012e
initial version 3.0.0 preview
...
hard work
2017-02-07 22:01:29 -08:00