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 +4 -4
- data/lib/pipe2me/version.rb +1 -1
- data/rakelib/test.rake +2 -2
- data/test/foreman-test.sh +1 -1
- data/test/monitrc-test.sh +1 -1
- data/test/opensslkey-test.sh +2 -2
- data/test/redirection-test.sh +16 -5
- data/test/testhelper.inc +1 -3
- metadata +4 -5
- data/test/000-roundup-test.sh +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea9b39bdabfdff554182252c3a14f48dfb723e56
|
4
|
+
data.tar.gz: 4f7804c87900d6efe3539cf05affd4fb50560da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 531290a0666f54693bab6d48c15bafe070064bd9a275fec8570600a24571357753dc788c788f8b7c98970153ff04b79fd0718d9e7f083f3a9d8e53a10a2256bc
|
7
|
+
data.tar.gz: 441b9f251e8fe932f3795ee482c35693c4c991cc1404a55655e4454b005d34b39c7ce4404d82b4a0293175bfa89faaea4635eaee946c46e5a9d489cd308e6030
|
data/lib/pipe2me/version.rb
CHANGED
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
|
-
|
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
|
-
|
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
|
data/test/opensslkey-test.sh
CHANGED
@@ -17,9 +17,9 @@ it_sets_up_openssl_certs() {
|
|
17
17
|
}
|
18
18
|
|
19
19
|
it_cannot_sign_other_certs() {
|
20
|
-
|
20
|
+
later A certificate cannot be used to sign other certificates
|
21
21
|
}
|
22
22
|
|
23
23
|
it_cannot_sign_fake_certs() {
|
24
|
-
|
24
|
+
later A client cannot ask the server to sign certs with different names
|
25
25
|
}
|
data/test/redirection-test.sh
CHANGED
@@ -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
|
-
|
7
|
-
|
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
|
-
|
11
|
-
|
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.
|
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-
|
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.
|
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.
|
136
|
+
summary: pipe2me command line client V0.2.13; (c) The kinko team, 2013, 2014.
|
138
137
|
test_files: []
|