aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wick...@apache.org
Subject git commit: End to end test should not look at the number of html lines.
Date Wed, 23 Apr 2014 23:09:37 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master c285f2f83 -> 4e42252be


End to end test should not look at the number of html lines.

Testing Done:
end-to-end test

Reviewed at https://reviews.apache.org/r/20629/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/4e42252b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/4e42252b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/4e42252b

Branch: refs/heads/master
Commit: 4e42252be1fa9919e118f9867a985201fa40c2f4
Parents: c285f2f
Author: Brian Wickman <wickman@apache.org>
Authored: Wed Apr 23 16:09:00 2014 -0700
Committer: Brian Wickman <wickman@apache.org>
Committed: Wed Apr 23 16:09:00 2014 -0700

----------------------------------------------------------------------
 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/4e42252b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
----------------------------------------------------------------------
diff --git a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
index f0f2ab5..05f8c28 100755
--- a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
+++ b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
@@ -59,16 +59,10 @@ test_flask_example() {
   echo '== Creating job'
   run_sched "/vagrant/$_testdir/aurora_client.pex create $jobkey $_base_config"
 
-  # Check that scheduler UI pages shown
+  # Check that scheduler /vars being exported
   base_url="http://$_sched_ip:8081"
-  schedlen=$(_curl -s "$base_url/scheduler" | wc -l)
-  # Length of the scheduler doc should be at least 40 lines.
-  test $schedlen -ge 40
-   # User page is at least 195 lines
-  rolelen=$(_curl -s "$base_url/scheduler/$_role" | wc -l)
-  test $rolelen -ge 195
-  joblen=$(_curl "$base_url/scheduler/$_role/$_env/$_job" | wc -l)
-  test $joblen -ge 195
+  uptime=$(_curl -s "$base_url/vars" | grep jvm_uptime_secs | wc -l)
+  test $uptime -eq 1
 
   echo '== Updating test job'
   run_sched "/vagrant/$_testdir/aurora_client.pex update $jobkey $_updated_config"


Mime
View raw message