blob: 6d56bfeeea548bc934b0dde808cfcf598a48b622 [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07003 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="prerequisites" description="ONOS test pre-requisites">
17 <group name="Prerequisites">
Thomas Vachuska1eec5052016-04-05 14:34:50 -070018 <step name="Check-Environment"
19 exec="test -n ${ONOS_ROOT} -a -n ${ONOS_NIC} -a -n ${OC1}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070020 <step name="Check-ONOS-Bits" exec="onos-check-bits"/>
Thomas Vachuskaa1d20e22018-12-13 09:43:18 -080021 <step name="Set-OpenJDK-11-As-Default" if="${stcOpenJDK}" exec="stc-set-openjdk11"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070022 <parallel var="${OC#}">
23 <step name="Check-Passwordless-Login-${#}"
Charles Chanc785d972015-10-14 15:25:25 -070024 exec="ssh -n -o ConnectTimeout=3 -o PasswordAuthentication=no ${ONOS_USER}@${OC#} date"/>
Phil Huang279d5822017-11-04 02:43:52 -070025 <step name="Check-Execute-sudo-NOPASSWD-${#}"
26 exec="ssh -n -o ConnectTimeout=3 -o PasswordAuthentication=no ${ONOS_USER}@${OC#} sudo -n true"/>
27 <step name="Check-Java-Environment-${#}"
28 exec="ssh -n -o ConnectTimeout=3 -o PasswordAuthentication=no ${ONOS_USER}@${OC#} java -version"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070029 </parallel>
Thomas Vachuska9e61bd92016-05-06 15:34:59 -070030 <step name="Check-Passwordless-Login-Proxy" if="${OCT}"
31 exec="ssh -n -o ConnectTimeout=3 -o PasswordAuthentication=no ${ONOS_USER}@${OCT} date"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070032 </group>
33</scenario>