@@ -29,37 +29,43 @@ def test(options)
2929 ( 1 ..4 ) . each do |i |
3030 test_queues [ i -1 ] << build_cucumber_command ( "REST API Group #{ i } " , [ "@broker_api#{ i } " ] )
3131 end
32+ test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Domain System" , "cd /data/openshift-test/broker; rake test:domain_system_test" )
3233 test_queues [ 2 ] << build_rake_command ( "OpenShift Broker Functionals Ext" , "cd /data/openshift-test/broker; rake test:functionals_ext" )
34+ test_queues [ 2 ] << build_rake_command ( "OpenShift Broker Integration Ext" , "cd /data/openshift-test/broker; rake test:integration_ext" )
35+ test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Application System" , "cd /data/openshift-test/broker; rake test:application_system_test" )
36+ test_queues [ 2 ] << build_rake_command ( "OpenShift Broker Cartridge System" , "cd /data/openshift-test/broker; rake test:cartridge_system_test" )
3337 end
3438
3539 if options [ :node_extended ]
3640 ( 1 ..3 ) . each do |i |
3741 test_queues [ i -1 ] << build_cucumber_command ( "Extended Runtime Group #{ i } " , [ "@runtime_extended#{ i } " ] )
3842 end
43+ test_queues [ 3 ] << build_rake_command ( "OpenShift Runtime Functionals Ext" , "cd /data/openshift-test/node; rake ext_func_test" )
3944 end
4045
4146 if options [ :rhc_extended ]
42- test_queues [ 0 ] << build_cucumber_command ( "RHC Extended" , [ "@rhc_extended" ] )
43- test_queues [ 1 ] << build_cucumber_command ( "RHC Integration" , [ ] ,
47+ test_queues [ 0 ] << build_cucumber_command ( "RHC Integration" , [ ] ,
4448 { "RHC_SERVER" => "broker.example.com" , "RHC_DOMAIN" => "example.com" } ,
45- nil , "/data/openshift-test/rhc/features " )
49+ nil , "/data/openshift-test/rhc/cucumber " )
4650 end
4751
48- #timeout = @@SSH_TIMEOUT
49- #timeout = @@SSH_TIMEOUT_OVERRIDES[options.include_cucumber] if not @@SSH_TIMEOUT_OVERRIDES[options.include_cucumber].nil?
50- #test_queues[0] << build_cucumber_command(options.include_cucumber, [], {}, nil, nil, options.include_cucumber)
51-
5252 unless options [ :exclude_broker ]
53+ test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Sanity" , "cd /data/openshift-test/broker; rake test:sanity" , { } , false ) if options [ :fixme ]
5354 test_queues [ 3 ] << build_rake_command ( "OpenShift Broker Units" , "cd /data/openshift-test/broker; rake test:units" , { } , false )
5455 test_queues [ 0 ] << build_rake_command ( "OpenShift Broker Integration" , "cd /data/openshift-test/broker; rake test:integration" , { } , false )
5556 test_queues [ 2 ] << build_rake_command ( "OpenShift Broker Functional" , "cd /data/openshift-test/broker; rake test:functionals" , { } , false )
56- # test_queues[1] << build_rake_command("OpenShift Admin Console Functional", "cd /data/openshift-test/broker; rake test:admin_console_functionals", {}, false)
57+ test_queues [ 1 ] << build_rake_command ( "OpenShift Admin Console Functional" , "cd /data/openshift-test/broker; rake test:admin_console_functionals" , { } , false ) if options [ :fixme ]
5758 test_queues [ 3 ] << build_cucumber_command ( "Broker cucumber" , [ "@broker" ] )
5859 end
5960
6061 unless options [ :exclude_node ]
61- test_queues [ 0 ] << build_rake_command ( "Runtime Functional" , "cd /data/openshift-test/node; rake func_test" , { } , false )
62- test_queues [ 0 ] << build_rake_command ( "Runtime Unit" , "cd /data/openshift-test/node; rake unit_test" , { } , false )
62+ test_queues [ 0 ] << build_rake_command ( "Runtime Functional" , "cd /data/openshift-test/node; rake essentials_test" , { } , false )
63+ test_queues [ 1 ] << build_rake_command ( "Runtime Frontend Plugin ApacheDB" , "cd /data/openshift-test/plugins/frontend/apachedb; rake test" , { } , false )
64+ test_queues [ 2 ] << build_rake_command ( "Runtime Frontend Plugin Apache Mod Rewrite" , "cd /data/openshift-test/plugins/frontend/apache-mod-rewrite; rake test" , { } , false )
65+ test_queues [ 3 ] << build_rake_command ( "Runtime Frontend Plugin Apache Vhost" , "cd /data/openshift-test/plugins/frontend/apache-vhost; rake test" , { } , false )
66+ test_queues [ 0 ] << build_rake_command ( "Runtime Frontend Plugin NodeJS Websocket" , "cd /data/openshift-test/plugins/frontend/nodejs-websocket; rake test" , { } , false )
67+ test_queues [ 1 ] << build_rake_command ( "Runtime Frontend Plugin Haproxy SNI Proxy" , "cd /data/openshift-test/plugins/frontend/haproxy-sni-proxy; rake test" , { } , false )
68+ test_queues [ 2 ] << build_rake_command ( "Runtime Unit" , "cd /data/openshift-test/node; rake unit_test" , { } , false )
6369 ( 1 ..4 ) . each do |i |
6470 test_queues [ i -1 ] << build_cucumber_command ( "Runtime Group #{ i . to_s } " , [ "@runtime#{ i . to_s } " ] )
6571 end
@@ -68,8 +74,24 @@ def test(options)
6874 unless options [ :exclude_rhc ]
6975 if @is_fedora
7076 test_queues [ 0 ] << build_rake_command ( "RHC Spec" , 'cd /data/openshift-test/rhc; bundle install --local && bundle exec rake spec' , { "SKIP_RUNCON" => 1 } , false )
77+ test_queues [ 0 ] << build_rake_command ( "RHC Features" , %{
78+ cd /data/openshift-test/rhc;
79+ export TEST_INSECURE=1;
80+ export TEST_RANDOM_USER=1;
81+ export RHC_SERVER=broker.example.com;
82+ export RHC_DOMAIN=example.com;
83+ bundle install --local && bundle exec rspec features/*_feature.rb
84+ } , { } , false )
7185 else
7286 test_queues [ 0 ] << build_rake_command ( "RHC Spec" , 'cd /data/openshift-test/rhc; bundle install --path=/tmp/rhc_bundle && bundle exec rake spec' , { } , false )
87+ test_queues [ 0 ] << build_rake_command ( "RHC Features" , %{
88+ cd /data/openshift-test/rhc;
89+ export TEST_INSECURE=1;
90+ export TEST_RANDOM_USER=1;
91+ export RHC_SERVER=broker.example.com;
92+ export RHC_DOMAIN=example.com;
93+ bundle install --path=/tmp/rhc_bundle && bundle exec rspec features/*_feature.rb
94+ } , { } , false )
7395 end
7496 end
7597
0 commit comments