confluentinc / confluent-docker-utils

Common Python utils for testing Confluent's Docker images
Apache License 2.0
3 stars 3 forks source link

ST-6542: Add username/password options to cub *-ready scripts #38

Closed dragosvictor closed 2 years ago

dragosvictor commented 2 years ago

Test against cp-demo:

./cub.py control-center-ready localhost 9022 5 --secure --ignore_cert && \
./cub.py kr-ready localhost 8086 5 --secure --ignore_cert --username superUser --password superUser && \
./cub.py sr-ready localhost 8085 5 --secure --ignore_cert --username superUser --password superUser && \
./cub.py connect-ready localhost 8083 5 --secure --ignore_cert --username superUser --password superUser && \
./cub.py ksql-server-ready localhost 8089 5 --secure --ignore_cert --username superUser --password superUser && \
echo "success"
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
success

Test against cp-all-in-one (unsecured):

./cub.py control-center-ready localhost 9021 5 && \
./cub.py kr-ready localhost 8082 5 && \
./cub.py sr-ready localhost 8081 5 && \
./cub.py connect-ready localhost 8083 5 && \
./cub.py ksql-server-ready localhost 8088 5 && \
echo "success"
success

Test with empty password:

./cub.py sr-ready localhost 8081 5 --username barney && echo "success"
success