python2 -c "print(b'hello_world'.decode().decode('utf-8'))"
hello_world
root@etcdkinetic:~/python-etcd3gw-0.2.5# python3 -c "print(b'hello_world'.decode().decode('utf-8'))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
apt build-dep .
debuild -us -uc
All unit tests passed.
#start etcd server in new shell
etcd
# open new shell, add a watch on foo
etcdctl watch foo -f
# run etcdctl commands
etcdctl set foo bar
etcdctl update foo foodbarbar
etcdctl rm foo
etcdctl mk foo foobarbar
The watch is working and responsive to etcdctl commands
the etcdctl watch command is working as intended shown in seperate terminal
etcdctl watch foo -f
bar
bar
foodbarbar
PrevNode.Value: foodbarbar
foobarbar
* Note should you run with etcd enabled and run debuild -us -uc for any python-etcd3gw package from source
======================================================================
FAIL: etcd3gw.tests.test_etcd3gw.TestEtcd3Gateway.test_client_locks
etcd3gw.tests.test_etcd3gw.TestEtcd3Gateway.test_client_locks
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/root/python-etcd3gw-0.2.5/etcd3gw/tests/test_etcd3gw.py", line 351, in test_client_locks
lock = self.client.lock(id='xyz-%s' % time.clock(), ttl=60)
AttributeError: module 'time' has no attribute 'clock'
### VERIFICATION DONE KINETIC ###
# create lxc ubuntu/ kinetic etcdkinetic
lxc launch images:
# Previous package etcd3gw_ 0.2.5-1ubuntu2
package name: python-etcd3gw
package version: python-
series: Kinetic
python2 -c "print( b'hello_ world'. decode( ).decode( 'utf-8' ))" c:~/python- etcd3gw- 0.2.5# python3 -c "print( b'hello_ world'. decode( ).decode( 'utf-8' ))"
hello_world
root@etcdkineti
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
apt build-dep .
debuild -us -uc
All unit tests passed.
#start etcd server in new shell
etcd
# open new shell, add a watch on foo
etcdctl watch foo -f
# run etcdctl commands
etcdctl set foo bar
etcdctl update foo foodbarbar
etcdctl rm foo
etcdctl mk foo foobarbar
The watch is working and responsive to etcdctl commands
the etcdctl watch command is working as intended shown in seperate terminal
etcdctl watch foo -f
bar
bar
foodbarbar
PrevNode.Value: foodbarbar
foobarbar
etcdctl --debug cluster-health 127.0.0. 1:4001, http:// 127.0.0. 1:2379 127.0.0. 1:4001/ v2/members 127.0.0. 1:2379/ v2/members localhost: 2379
Cluster-Endpoints: http://
cURL Command: curl -X GET http://
cURL Command: curl -X GET http://
member 8e9e05c52164694d is healthy: got healthy result from http://
cluster is healthy
* Note should you run with etcd enabled and run debuild -us -uc for any python-etcd3gw package from source ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.test_ etcd3gw. TestEtcd3Gatewa y.test_ client_ locks tests.test_ etcd3gw. TestEtcd3Gatewa y.test_ client_ locks ------- ------- ------- ------- ------- ------- ------- ------- ------- testresult. real._StringExc eption: Traceback (most recent call last): python- etcd3gw- 0.2.5/etcd3gw/ tests/test_ etcd3gw. py", line 351, in test_client_locks lock(id= 'xyz-%s' % time.clock(), ttl=60)
=======
FAIL: etcd3gw.
etcd3gw.
-------
testtools.
File "/root/
lock = self.client.
AttributeError: module 'time' has no attribute 'clock'
### VERIFICATION DONE KINETIC ###