You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wf...@apache.org on 2017/12/06 16:58:19 UTC
aurora git commit: Remove H2-related end-to-end test case
Repository: aurora
Updated Branches:
refs/heads/master e74fb3240 -> 2754636c6
Remove H2-related end-to-end test case
This test still exercises kerberos functionality through the `snapshot_as`
function, so the h2 test case can safely be considered redundant.
Reviewed at https://reviews.apache.org/r/64377/
Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/2754636c
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/2754636c
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/2754636c
Branch: refs/heads/master
Commit: 2754636c674a9912475edafe01669602125fbee3
Parents: e74fb32
Author: Bill Farner <wf...@apache.org>
Authored: Wed Dec 6 08:58:16 2017 -0800
Committer: Bill Farner <wf...@apache.org>
Committed: Wed Dec 6 08:58:16 2017 -0800
----------------------------------------------------------------------
.../aurora/e2e/test_kerberos_end_to_end.sh | 20 --------------------
1 file changed, 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/aurora/blob/2754636c/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
----------------------------------------------------------------------
diff --git a/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh b/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
index 2a7a66d..646c213 100755
--- a/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
+++ b/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
@@ -63,16 +63,6 @@ function snapshot_as {
kdestroy
}
-readonly H2_RESPONSE_OUTFILE="h2console-response.%s.json"
-function h2console_as {
- local principal=$1
- kinit -k -t "testdir/${principal}.keytab" $principal
- curl -u : --negotiate -w '%{http_code}\n' \
- -o $(printf $H2_RESPONSE_OUTFILE $principal) \
- -s "http://$SCHEDULER_HOSTNAME:8081/h2console/"
- kdestroy
-}
-
function setup {
cat >> $KRB5_CONFIG <<EOF
[domain_realm]
@@ -115,15 +105,6 @@ function test_snapshot {
grep -qv 'lacks permission' snapshot-response.root.json
}
-function test_h2console {
- h2console_as vagrant
- grep -q 'Error 401' h2console-response.vagrant.json
- h2console_as unpriv
- grep -q 'Error 401' h2console-response.unpriv.json
- h2console_as root
- grep -q 'Welcome to H2' h2console-response.root.json
-}
-
function test_clients {
sudo cp /vagrant/examples/vagrant/clusters_kerberos.json /etc/aurora/clusters.json
@@ -157,7 +138,6 @@ function main {
setup
test_snapshot
test_clients
- test_h2console
set +x
echo
echo '*** OK (All tests passed) ***'