You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Nikolay Izhikov <ni...@apache.org> on 2020/08/31 09:55:42 UTC

[TeamCity] Python Thin Client test job improvement

Hello, Igniters.

JFYI

Currently, we don’t test SSL mode for Python Thin Client.

I and Andrey Kuznetsov are working on IGNITE-12718 [1] «Python Thin Client add an ability to specify keyfile password» 
To test existed SSL support and new feature I need to update «ThinClient: Python»  job [2]

I will do it in the nearest time.

Locally, I use this script. Will use similar approach on TC.

```
#!/bin/sh

IGNITE_HOME=/Users/sbt-izhikov-nv/bin/apache-ignite-2.10.0-SNAPSHOT-bin
export PYTHON_TEST_CONFIG_PATH=/Users/sbt-izhikov-nv/src/ignite/modules/platforms/python/tests/config

$IGNITE_HOME/bin/ignite.sh $PYTHON_TEST_CONFIG_PATH/ssl.xml & 
IGNITE_PID=$! 

TEST_OPTS="--use-ssl=True --ssl-certfile=$PYTHON_TEST_CONFIG_PATH/ssl/client_full.pem"
python3 setup.py pytest --addopts="$TEST_OPTS"

TEST_OPTS="--use-ssl=True --ssl-certfile=$PYTHON_TEST_CONFIG_PATH/ssl/client_with_pass_full.pem --ssl-keyfile-password=654321"
python3 setup.py pytest --addopts="$TEST_OPTS"

pkill -P $IGNITE_PID
```

[1] https://github.com/apache/ignite/pull/8200
[2] https://ci.ignite.apache.org/viewType.html?buildTypeId=IgniteTests24Java8_ThinClientPython