Commit Graph

21 Commits

Author SHA1 Message Date
Yu Liao
ca8a5b1432 Fixed issue: pass_env values cannot contain whitespace, use comma to have multiple
values in a single line

https://github.com/kubernetes-client/python/actions/runs/4001147429/jobs/6867090020
2023-01-25 21:57:42 +00:00
antonblr
18f3bd2408 Generate and upload code coverage 2022-02-10 19:18:01 -08:00
Nabarun Pal
6fe32feceb
Remove Python 3.5 env from tox config
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-06 11:51:58 +05:30
Priyanka Saggu
4431c4d577
drop python2 support from k8s-client/python
Signed-off-by: Priyanka Saggu <priyankasaggu11929@gmail.com>
2021-05-14 23:05:33 +05:30
Gábor Lipták
213cd83c8a
Add Python 3.9 to build
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2020-11-09 19:28:08 -05:00
Aliaksei Urbanski
4d858922f1 Enable testing for Python 3.8
Python 3.8 is there, so I believe that it would be nice
to declare support and add tests for it on CI.

Python 3.8.0 release announcement:
https://discuss.python.org/t/python-3-8-0-is-now-available/2478
2019-10-16 23:50:01 +03:00
Nabarun Pal
064b80e0cd
Moves coverage report generation to pytest from nosetests
Adds pytest-cov to requirements
2019-10-16 15:24:10 +05:30
Xianglong Wang
fa12fea2e4 Change py.test to pytest 2019-10-08 14:42:55 -05:00
Oz N Tiram
e8fd4b9af9 Drop Python3.4
Python3.4 become EOL on 2019.03.18.

 https://www.python.org/dev/peps/pep-0429/
2019-04-05 21:20:48 +02:00
micw523
de9b187054 Prepare for Python 3.7 tests 2018-11-09 19:58:26 -06:00
micw523
6ea777e647 change pep8 into pycodestyle since pep8 is depreciated 2018-10-27 02:29:59 -05:00
Davanum Srinivas
7fd6d559b8 Use py.test instead of nosetests for better problem reporting (#282)
nosetests output is not very useful for diagnosing issues when
running in travis. Let us switch to py.test
2017-07-06 18:27:30 -07:00
codevulture
97ee0d804f Travis Fix for E2E tests 2017-06-21 13:34:04 +05:30
Sergi Almacellas Abellana
20fa5b4ded Add support for python3.6 2017-06-07 10:30:51 +02:00
Davanum Srinivas
066bba1802 Implementation for /exec using websocket
inspired by the POC from @chekolyn

* Adds a new requirement on websocket-client
* Add a new class WSClient that uses WebSocketApp from
  the websocket-client.
* Make sure we pass Authorization header
* Make sure we honor the SSL settings in configuration
* Some of the code will get overwritten when we generate
  fresh classes from swagger definition. To remind us
  added a e2e test so we don't lose the changes
* Added a new configuration option to enable/disable failures
  when hostnames in certificates don't match

Fixes #58
2017-02-07 16:48:26 -05:00
Davanum Srinivas
96cfceb2f0 Run e2e tests against against https url
Use hitch tls proxy to listen on 8443 port and forward the
traffic to 8080. Add a configuration option to ignore any
issues with host names as we don't generate the cert on the
fly.
2017-02-03 12:16:58 -05:00
Davanum Srinivas
5c82309840 tox target to enforce pep8 2017-01-12 16:47:45 -05:00
Davanum Srinivas
010af62b76 Add functional test
Port a bunch of tests from python-k8sclient repository. There
is a script that starts a real instance of kubernetes and
the tests are executed against it.

Note, if you just have k8s accessible in your localhost:8080, the
tests still run. so you don't really need to run "py27-functional"
which runs the kube-init.sh

Also, 2 API calls fail currently, i've added a TODO so we can
dig into them and fix them
2017-01-12 06:26:16 -05:00
Davanum Srinivas
0ca9210d31 Initial cut at documentation 2017-01-11 16:13:30 -05:00
Davanum Srinivas
9266f7c457 Run Tests with python 3.5
Update tox.ini and .travis.yml to support python 3.5
2017-01-10 09:30:03 -05:00
mbohlool
69b1cb1a35 Generated client 2016-11-02 13:38:36 -07:00