pipe2me-client 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c691420121289dd7bdb35a6f92888035c2047ac0
4
- data.tar.gz: 8deadf734dfdd8ddd91d0c3d5079c3f5f0457953
3
+ metadata.gz: ea9b39bdabfdff554182252c3a14f48dfb723e56
4
+ data.tar.gz: 4f7804c87900d6efe3539cf05affd4fb50560da5
5
5
  SHA512:
6
- metadata.gz: 6d12deddd45d28df443cf9b0f71505805f272f92bb6bbe4ce40fe4b83889dbca26c9bb7e4c23cd39530315b9971520f833e3424bcf6b771826631d1e97654b15
7
- data.tar.gz: 67b02658dcd236efecc9b76cbc495b4d3db1dbd6439a6f27625355090f86e8ea38fdf984c6cfc87f603f62d6331c041168d20ac15712608f6ec266064c3a63b3
6
+ metadata.gz: 531290a0666f54693bab6d48c15bafe070064bd9a275fec8570600a24571357753dc788c788f8b7c98970153ff04b79fd0718d9e7f083f3a9d8e53a10a2256bc
7
+ data.tar.gz: 441b9f251e8fe932f3795ee482c35693c4c991cc1404a55655e4454b005d34b39c7ce4404d82b4a0293175bfa89faaea4635eaee946c46e5a9d489cd308e6030
@@ -1,4 +1,4 @@
1
1
  module Pipe2me
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  BANNER = "pipe2me command line client V#{Pipe2me::VERSION}; (c) The kinko team, 2013, 2014."
4
4
  end
data/rakelib/test.rake CHANGED
@@ -4,13 +4,13 @@ namespace :test do
4
4
  # test scenario.
5
5
  task :debug do
6
6
  FileUtils.mkdir_p "tmp"
7
- system "TEST_ENV=debug roundup test/*-test.sh"
7
+ system "TEST_ENV=debug sbin/roundup test/*-test.sh"
8
8
  end
9
9
 
10
10
  # run a release test - a test against test.pipe2.me. Please run this
11
11
  # test before releasing a new version.
12
12
  task :release do
13
13
  FileUtils.mkdir_p "tmp"
14
- system "TEST_ENV=release roundup test/*-test.sh"
14
+ system "TEST_ENV=release sbin/roundup test/*-test.sh"
15
15
  end
16
16
  end
data/test/foreman-test.sh CHANGED
@@ -4,7 +4,7 @@ describe "setup and starts tunnels in foreman mode"
4
4
  . $(dirname $1)/testhelper.inc
5
5
 
6
6
  it_works_with_foreman() {
7
- false [TODO] It setup and starts tunnels in foreman mode
7
+ later It setup and starts tunnels in foreman mode
8
8
  # i.e. pipe2me setup
9
9
  # pipe2me echo
10
10
  # ...
data/test/monitrc-test.sh CHANGED
@@ -4,7 +4,7 @@ describe "setup and starts tunnels in foreman mode"
4
4
  . $(dirname $1)/testhelper.inc
5
5
 
6
6
  it_works_with_monitrc() {
7
- false [TODO] It setup and starts tunnels in monitrc mode
7
+ later It setup and starts tunnels in monitrc mode
8
8
  # i.e. pipe2me setup
9
9
  # pipe2me monitrc
10
10
  # pipe2me monit start all
@@ -17,9 +17,9 @@ it_sets_up_openssl_certs() {
17
17
  }
18
18
 
19
19
  it_cannot_sign_other_certs() {
20
- false [TODO] A certificate cannot be used to sign other certificates
20
+ later A certificate cannot be used to sign other certificates
21
21
  }
22
22
 
23
23
  it_cannot_sign_fake_certs() {
24
- false [TODO] A client cannot ask the server to sign certs with different names
24
+ later A client cannot ask the server to sign certs with different names
25
25
  }
@@ -3,10 +3,21 @@ describe 'a HTTP(s) connection to subdomain.$pipe2me_server redirects to subdoma
3
3
 
4
4
  . $(dirname $1)/testhelper.inc
5
5
 
6
- it_redirects_https_connections() {
7
- false [TODO] 'redirects https://subdomain.$pipe2me_server to https://subdomain.$pipe2me_server:port'
8
- }
6
+ # redirects https://subdomain.$pipe2me_server to https://subdomain.$pipe2me_server:port
7
+
8
+ it_redirects_http_and_https_connections() {
9
+ # later 'redirects https://subdomain.$pipe2me_server to https://subdomain.$pipe2me_server:port'
10
+ fqdn=$($pipe2me setup --server $pipe2me_server --token $pipe2me_token --ports 8100,8101 --protocols http,https)
11
+
12
+ # load pipe2me environment settings. As a result, ..
13
+ eval $($pipe2me env)
14
+
15
+ [ "$PIPE2ME_URLS_0" ] # .. PIPE2ME_URLS_0 is the HTTP redirection target URL, and ..
16
+ [ "$PIPE2ME_URLS_1" ] # .. PIPE2ME_URLS_1 is the HTTPS redirection target URL
17
+
18
+ https_redirection_target=$(curl -s -o /dev/null -I -k -w %{redirect_url} https://$fqdn:8443)
19
+ [ $PIPE2ME_URLS_1/ = "$https_redirection_target" ]
9
20
 
10
- it_redirects_http_connections() {
11
- false [TODO] 'redirects http://subdomain.$pipe2me_server to http://subdomain.$pipe2me_server:port'
21
+ http_redirection_target=$(curl -s -o /dev/null -I -w %{redirect_url} http://$fqdn:8080)
22
+ [ $PIPE2ME_URLS_0/ = "$http_redirection_target" ]
12
23
  }
data/test/testhelper.inc CHANGED
@@ -3,10 +3,8 @@ pipe2me=$(cd $(dirname $1)/../bin && pwd)/pipe2me
3
3
  # pipe2me_server=http://test.pipe2.me
4
4
 
5
5
  # Load test scenario settings
6
+ TEST_ENV=${TEST_ENV:-debug}
6
7
  echo "Load $TEST_ENV test settings"
7
- if [ -z "$TEST_ENV" ]; then
8
- TEST_ENV=debug
9
- fi
10
8
 
11
9
  . $(dirname $1)/testhelper.${TEST_ENV}
12
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipe2me-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: pipe2me command line client V0.2.12; (c) The kinko team, 2013, 2014.
69
+ description: pipe2me command line client V0.2.13; (c) The kinko team, 2013, 2014.
70
70
  email: contact@kinko.me
71
71
  executables:
72
72
  - pipe2me
@@ -98,7 +98,6 @@ files:
98
98
  - lib/pipe2me/which.rb
99
99
  - rakelib/gem.rake
100
100
  - rakelib/test.rake
101
- - test/000-roundup-test.sh
102
101
  - test/auth-token-test.sh
103
102
  - test/env-test.sh
104
103
  - test/foreman-test.sh
@@ -134,5 +133,5 @@ rubyforge_project:
134
133
  rubygems_version: 2.2.2
135
134
  signing_key:
136
135
  specification_version: 4
137
- summary: pipe2me command line client V0.2.12; (c) The kinko team, 2013, 2014.
136
+ summary: pipe2me command line client V0.2.13; (c) The kinko team, 2013, 2014.
138
137
  test_files: []
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env roundup
2
- describe "Is roundup working?"
3
-
4
- it_exits_non_zero() {
5
- roundup=$(which roundup)
6
- test "" != $roundup
7
- }