Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(configuration): strip whitespaces when reading .testcontainers.properties #474

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

kiview
Copy link
Member

@kiview kiview commented Mar 14, 2024

What does this PR do?

Strip whitespaces from key and value after reading ~/.testcontainers.properties. The way TCD writes this file, the = will be surrounded by whitespaces, e.g.:

kiview@kay ~ % cat .testcontainers.properties
tc.host = tcp://127.0.0.1:59499
testcontainers.reuse.enable = true

Why is it important?

Adds Plug&Play support for Testcontainers Desktop and Testcontainers Cloud.

How to test this PR

Run any kind of tests that involve creating and starting containers, while Testcontainers Desktop is running. Testcontainers Desktop should be used and hence started containers can be seen in the Testcontainers Cloud dashboard.

@kiview kiview requested a review from totallyzen March 14, 2024 10:31
Copy link
Collaborator

@totallyzen totallyzen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@totallyzen totallyzen changed the title fix: strip whitespaces when reading .testcontainers.properties fix(configuration): strip whitespaces when reading .testcontainers.properties Mar 14, 2024
@totallyzen totallyzen merged commit ade144e into main Mar 14, 2024
8 checks passed
@totallyzen totallyzen deleted the fix-tc-host branch March 14, 2024 15:19
totallyzen pushed a commit that referenced this pull request Mar 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.1.0](testcontainers-v4.0.1...testcontainers-v4.1.0)
(2024-03-19)


### Features

* **reliability:** integrate the ryuk container for better container
cleanup
([#314](#314))
([d019874](d019874))


### Bug Fixes

* changelog after release-please
([#469](#469))
([dcb4f68](dcb4f68))
* **configuration:** strip whitespaces when reading
.testcontainers.properties
([#474](#474))
([ade144e](ade144e))
* try to fix release-please by setting a bootstrap sha
([#472](#472))
([ca65a91](ca65a91))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bearrito pushed a commit to bearrito/testcontainers-python that referenced this pull request Mar 30, 2024
…operties (testcontainers#474)

## What does this PR do?

Strip whitespaces from key and value after reading
`~/.testcontainers.properties`. The way TCD writes this file, the `=`
will be surrounded by whitespaces, e.g.:

```
kiview@kay ~ % cat .testcontainers.properties
tc.host = tcp://127.0.0.1:59499
testcontainers.reuse.enable = true
```

## Why is it important?

Adds Plug&Play support for Testcontainers Desktop and Testcontainers
Cloud.

## How to test this PR

Run any kind of tests that involve creating and starting containers,
while Testcontainers Desktop is running. Testcontainers Desktop should
be used and hence started containers can be seen in the Testcontainers
Cloud dashboard.
bearrito pushed a commit to bearrito/testcontainers-python that referenced this pull request Mar 30, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.1.0](testcontainers/testcontainers-python@testcontainers-v4.0.1...testcontainers-v4.1.0)
(2024-03-19)


### Features

* **reliability:** integrate the ryuk container for better container
cleanup
([testcontainers#314](testcontainers#314))
([d019874](testcontainers@d019874))


### Bug Fixes

* changelog after release-please
([testcontainers#469](testcontainers#469))
([dcb4f68](testcontainers@dcb4f68))
* **configuration:** strip whitespaces when reading
.testcontainers.properties
([testcontainers#474](testcontainers#474))
([ade144e](testcontainers@ade144e))
* try to fix release-please by setting a bootstrap sha
([testcontainers#472](testcontainers#472))
([ca65a91](testcontainers@ca65a91))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants