Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladimir Tsymbal vovkats

View GitHub Profile
View gist:40a943c450ca19ca92b12b2ccfffe5a4
PLAY [localhost] ********************************************************************************************************************************************************************************************
TASK [download : include_tasks] *****************************************************************************************************************************************************************************
Thursday 05 April 2018 12:34:41 +0500 (0:00:00.061) 0:00:00.061 ********
TASK [download : Download items] ****************************************************************************************************************************************************************************
Thursday 05 April 2018 12:34:41 +0500 (0:00:00.033) 0:00:00.095 ********
TASK [download : Sync container] ****************************************************************************************************************************************************************************
View gist:c42e52ba04645afd8dfa1a4f440318d6
# Kubernetes configuration dirs and system namespace.
# Those are where all the additional config stuff goes
# the kubernetes normally puts in /srv/kubernets.
# This puts them in a sane location and namespace.
# Editting those values will almost surely break something.
kube_config_dir: /etc/kubernetes
kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
kube_manifest_dir: "{{ kube_config_dir }}/manifests"
# This is where all the cert scripts and certs will be located
View gist:ba2793e6cd58a188d89e3ee7859e3d84
# Valid bootstrap options (required): ubuntu, coreos, centos, none
bootstrap_os: ubuntu
#Directory where etcd data stored
etcd_data_dir: /var/lib/etcd
# Directory where the binaries will be installed
bin_dir: /usr/local/bin
## The access_ip variable is used to define how other nodes should access
View gist:34953b057d6c050526347e44e627f760
TASK [etcd : Configure | Check if etcd cluster is healthy] **************************************************************************************************************************************************
Wednesday 04 April 2018 16:25:13 +0500 (0:00:00.102) 0:01:07.015 *******
fatal: [node1]: FAILED! => {"changed": false, "cmd": "/usr/local/bin/etcdctl --endpoints=https://91.226.80.139:2379 cluster-health | grep -q 'cluster is healthy'", "delta": "0:00:00.021315", "end": "2018-04-04 11:25:13.769959", "msg": "non-zero return code", "rc": 1, "start": "2018-04-04 11:25:13.748644", "stderr": "Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 91.226.80.139:2379: getsockopt: connection refused\n\nerror #0: dial tcp 91.226.80.139:2379: getsockopt: connection refused", "stderr_lines": ["Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 91.226.80.139:2379: getsockopt: connection refused", "", "error #0: dial tcp 91.226.80.139:2379: getsockopt: conn
@vovkats
vovkats / tests
Last active Aug 29, 2015
tests for watir-webdriver
View tests
diff --git a/wait_spec.rb b/wait_spec.rb
index efcc0b0..6ac5cab 100644
--- a/wait_spec.rb
+++ b/wait_spec.rb
@@ -34,6 +34,24 @@ not_compliant_on [:webdriver, :safari] do
}.to raise_error(Watir::Wait::TimeoutError, "timed out after 0.5 seconds, oops")
end
end
+
+ describe "#timer" do
@vovkats
vovkats / wait.rb
Last active Aug 29, 2015
Watir Timer
View wait.rb
diff --git a/lib/watir-webdriver/wait.rb b/lib/watir-webdriver/wait.rb
index 3afcbf4..79c1227 100644
--- a/lib/watir-webdriver/wait.rb
+++ b/lib/watir-webdriver/wait.rb
@@ -8,7 +8,23 @@ module Watir
INTERVAL = 0.1
+ class MyImplementation
+