Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Add redis streaming client #250

Merged
merged 2 commits into from
Feb 8, 2019
Merged

Add redis streaming client #250

merged 2 commits into from
Feb 8, 2019

Conversation

c-w
Copy link
Contributor

@c-w c-w commented Feb 6, 2019

Integration tested via:

docker network create redis-test

docker build --target builder -t agogosml -f agogosml/Dockerfile.agogosml agogosml

docker run -d --name redis --rm --network redis-test -p 6379:6379 redis:5-alpine \
  redis-server --requirepass 123456password

docker run -d --rm --network redis-test -it agogosml \
  python -m agogosml.tools.receiver --receiver redis \
  '{"REDIS_URL":"redis://:123456password@redis:6379", "REDIS_CHANNEL":"mychan"}'

docker run -d --rm --network redis-test -it agogosml \
  python -m agogosml.tools.sender --infile README.rst --sender redis \
  '{"REDIS_URL":"redis://:123456password@redis:6379", "REDIS_CHANNEL":"mychan"}'

docker logs -f <id-of-receiver-container>

All Submissions:

  • Have you followed the guidelines in our Contributing document?

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

  • Does your PR follow our Code of Conduct?

  • Have you added an explanation of what your changes do and why you'd like us to include them?

  • Does each method or function "do one thing well"? Reviewers may recommend methods be split up for maintainability and testability.

  • Is this code designed to be testable?

  • Is the code documented well?

  • Does your submission pass existing tests (or update existing tests with documentation regarding the change)?

  • Have you added tests to cover your changes?

  • Have you linted your code prior to submission?

  • Have you updated the documentation and README?

  • Is PII treated correctly? In particular, make sure the code is not logging objects or strings that might contain PII (e.g. request headers).

  • Have secrets been stripped before committing?

Integration tested via:

```bash
docker network create redis-test

docker build --target builder -t agogosml -f agogosml/Dockerfile.agogosml agogosml

docker run -d --name redis --rm --network redis-test -p 6379:6379 redis:5-alpine \
  redis-server --requirepass 123456password

docker run -d --rm --network redis-test -it agogosml \
  python -m agogosml.tools.receiver --receiver redis \
  '{"REDIS_URL":"redis://:123456password@redis:6379", "REDIS_CHANNEL":"mychan"}'

docker run -d --rm --network redis-test -it agogosml \
  python -m agogosml.tools.sender --infile README.rst --sender redis \
  '{"REDIS_URL":"redis://:123456password@redis:6379", "REDIS_CHANNEL":"mychan"}'

docker logs -f <id-of-receiver-container>
```
Copy link
Member

@cicorias cicorias left a comment

Choose a reason for hiding this comment

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

LGTM
image

@@ -1,6 +1,7 @@
confluent-kafka~=0.11
azure-eventhub~=1.2
requests~=2.20
redis~=3.1.0
Copy link
Member

Choose a reason for hiding this comment

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

we really should be more specific especially on the 0.x.x versions as with jsonnet that has pulled in a release candidate. eg. we had ~=0.11 -- which allowed a 0.12 rc version that was broken on debian.

@cicorias cicorias merged commit 0d388a8 into master Feb 8, 2019
@cicorias cicorias deleted the redis branch February 8, 2019 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants