Commit Graph

168 Commits

Author SHA1 Message Date
Mehdy Bohlool
cd3e68483d Update release.md 2017-02-21 14:18:34 -08:00
Mehdy Bohlool
436351b027 Merge pull request #125 from mbohlool/exec
Improvements on ws_client
2017-02-21 13:46:01 -08:00
mbohlool
88563a6619 Update CHANGELOG 2017-02-21 12:55:37 -08:00
mbohlool
4e593a7530 Improvements on ws_client. Now the client can returns an object to interact with websocket server and reach each channel separately 2017-02-21 12:55:37 -08:00
Mehdy Bohlool
1635150346 Merge pull request #123 from dims/try-localkube-for-e2e
Switch to minikube/localkube
2017-02-09 13:17:47 -08:00
Davanum Srinivas
353e8ccdc8 Switch to minikube/localkube
* Drop the old Kubernetes on docker containers method as it
  did not have a SSL enabled port
* Use localkube component from minikube instead. This enables
  us to drop the hitch TLS proxy as well.
* E2E tests should be easy to run locally and pick up configuration
  from ~/.kube/config
* Consolidate the urls in one spot (base.py), also consolidate the
  SkipTest in one spot.
* For local testing, just run minikube and run the py27 or py34 tox
  target, that should run all the tests including the e2e tests.
* Fix the connect_post_namespaced_pod_exec and add a e2e test for it

Fixes #122
2017-02-09 15:49:04 -05:00
Mehdy Bohlool
cfd34ef280 Merge pull request #120 from dims/support-exec-calls
Implementation for /exec using websocket
2017-02-07 14:49:25 -08: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
Mehdy Bohlool
192b67c446 Merge pull request #121 from dims/ssl-based-e2e-tests
Run e2e tests against against https url
2017-02-07 13:13:53 -08:00
Davanum Srinivas
16d6da465e Add comment about hitch ppa 2017-02-07 16:00:33 -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
Mehdy Bohlool
1d3cd13845 Merge pull request #115 from dims/add-more-e2e-tests
Refactor tests
2017-01-26 06:28:11 -08:00
Mehdy Bohlool
633014180e Merge branch 'master' into add-more-e2e-tests 2017-01-26 06:17:06 -08:00
Davanum Srinivas
38aaec0f47 Refactor tests
* separate batch, extensions and the regular apis into separate
* added delete for some tests
* drop '_' for is_k8s_running
* remove comments that do not add value
2017-01-26 09:11:07 -05:00
Mehdy Bohlool
3b4aec6b64 Merge pull request #116 from mbohlool/dev
Add download stat how-to page
2017-01-26 05:39:58 -08:00
mbohlool
2a321d4df9 Add download stat how-to page [skip ci] 2017-01-26 05:38:35 -08:00
Mehdy Bohlool
dbf9938874 Merge pull request #113 from mbohlool/dev
Add release process
2017-01-25 17:24:03 -08:00
mbohlool
f3d4014a28 Add release process [skip ci] 2017-01-25 14:56:57 -08:00
Mehdy Bohlool
76de3def19 Merge pull request #110 from dims/more-e2e-tests
More e2e tests
2017-01-25 14:52:51 -08:00
Mehdy Bohlool
839ce73570 Merge branch 'master' into more-e2e-tests 2017-01-25 14:51:41 -08:00
Mehdy Bohlool
d383faa3eb Merge pull request #111 from kubernetes-incubator/mbohlool-patch-1
Update CHANGELOG.md
2017-01-25 14:49:40 -08:00
Mehdy Bohlool
f2e6d83d07 Update CHANGELOG.md 2017-01-25 14:30:25 -08:00
Davanum Srinivas
03731f1003 Add e2e for deployment and daemonsets 2017-01-25 17:00:05 -05:00
Davanum Srinivas
cf5d796cf4 Ability to run e2e tests multiple times 2017-01-25 16:02:06 -05:00
Mehdy Bohlool
13ac533707 Merge pull request #108 from mbohlool/example
Add example to create a deployment from yaml file
2017-01-25 02:25:37 -08:00
mbohlool
68e3231a80 Add example to create a deployment from yaml file 2017-01-24 22:32:43 -08:00
Mehdy Bohlool
6593d3a43f Merge pull request #107 from mbohlool/master
Support insecure-skip-tls-verify config flag
2017-01-24 18:03:58 -08:00
mbohlool
8fc978e49f Support insecure-skip-tls-verify config flag 2017-01-24 14:47:20 -08:00
Mehdy Bohlool
f10f4f32cd Merge pull request #106 from dims/fix-value-error
Fix ValueError in list_namespaced_config_map
2017-01-24 02:14:25 -08:00
Davanum Srinivas
1e48433b15 Fix ValueError in list_namespaced_config_map
Make sure we set an empty dict/list if we don't get
any data from the server

Fixes #104
2017-01-23 11:41:48 -05:00
Mehdy Bohlool
a3e922afb0 Merge pull request #98 from dims/fix-patch-tests
Fix for patch_* to work
2017-01-21 01:50:59 -08:00
Davanum Srinivas
9c6c96564b Fix for patch_* to work
Hack/workaround to get patch_namespaced_config_map and patch_namespaced_service
etc to work by essentially switching over the content-type from:
application/json-patch+json
to:
application/strategic-merge-patch+json

Fixes #93
2017-01-20 21:41:59 -05:00
Mehdy Bohlool
4c3aced244 Merge pull request #103 from mbohlool/master
Bugfix: kubernetes/client/__init__.py was not updated resulting in not exported models
2017-01-20 14:12:42 -08:00
mbohlool
c05b50c4ff Bugfix: kubernetes/client/__init__.py was not updated resulting in not exported models 2017-01-19 13:58:20 -08:00
mbohlool
98dc69105f Update client with no change. Mostly formatting update in generator code 2017-01-19 13:36:07 -08:00
Mehdy Bohlool
daa056294d Merge pull request #100 from dims/cleanup-references-to-k8sclient
cleanup: rename k8sclient->client
2017-01-17 14:16:39 -08:00
Davanum Srinivas
28181d7ee9 cleanup: rename k8sclient->client 2017-01-16 14:45:02 -05:00
Mehdy Bohlool
c8b0968d50 Merge pull request #96 from dims/enforce-doc-builds
Test if docs can be built
2017-01-13 11:23:48 -08:00
Davanum Srinivas
8d4cd14515 Test if docs can be built 2017-01-13 05:57:35 -05:00
Mehdy Bohlool
37d20f2fe7 Merge pull request #97 from dims/enforce-update-pep8
tox target to enforce pep8
2017-01-13 02:40:30 -08:00
Davanum Srinivas
5c82309840 tox target to enforce pep8 2017-01-12 16:47:45 -05:00
Mehdy Bohlool
c147f665b4 Merge pull request #94 from dims/add-functional-test
Add functional test
2017-01-12 12:48:03 -08: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
Mehdy Bohlool
ce8e08226d Merge pull request #95 from dims/initial-documentation
Initial cut at documentation
2017-01-11 22:50:18 -08:00
Davanum Srinivas
0ca9210d31 Initial cut at documentation 2017-01-11 16:13:30 -05:00
Mehdy Bohlool
3220a96bc6 Merge pull request #92 from mbohlool/master
Kubernetes is not a valid value for Environment classifier in setup.py
2017-01-10 14:13:33 -08:00
mbohlool
a0b391abc1 Kubernetes is not a valid value for Environment classifier in setup.py 2017-01-10 14:10:23 -08:00
Mehdy Bohlool
cb8aadcc81 Merge pull request #91 from mbohlool/master
Update changelog
2017-01-10 13:55:03 -08:00
mbohlool
97c804ac59 Update changelog 2017-01-10 13:38:18 -08:00
Mehdy Bohlool
cd2342dc2e Merge pull request #90 from mbohlool/master
Update generated client after bugfix kubernetes/kubernetes#39465
2017-01-10 13:23:48 -08:00