Commit 55afae48 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Steve Mcintyre

schema: add "new_connection" boot method

Signed-off-by: Rémi Duraffort's avatarRémi Duraffort <remi.duraffort@linaro.org>
parent ed4eeda0
Pipeline #3881 passed with stages
in 8 minutes and 26 seconds
......@@ -8,12 +8,12 @@ then
apt-get install --no-install-recommends --yes python3 python3-nose python3-voluptuous python3-yaml
else
# documentation
EXCLUDE="bbb-2serial.yaml bbb-lxc-ssh-guest.yaml hikey-new-connection.yaml multiple-serial-ports-lxc.yaml mustang-ssh-guest.yaml"
EXCLUDE="hikey-new-connection.yaml"
CMD="--exclude $(echo ${EXCLUDE} | sed "s# # --exclude #g#")"
PYTHONPATH=. ./share/lava-schema.py job ${CMD} doc/v2/examples/test-jobs/*.yaml
# lava_dispatcher
EXCLUDE="basics.yaml bbb-group-vland-alpha.yaml bbb-group-vland-beta.yaml bbb-ssh-guest.yaml hikey-console.yaml kvm-multinode-client.yaml kvm-multinode-server.yaml kvm-repeat.yaml test_action-1.yaml test_action-2.yaml"
EXCLUDE="basics.yaml bbb-group-vland-alpha.yaml bbb-group-vland-beta.yaml bbb-ssh-guest.yaml kvm-multinode-client.yaml kvm-multinode-server.yaml kvm-repeat.yaml test_action-1.yaml test_action-2.yaml"
CMD="--exclude $(echo ${EXCLUDE} | sed "s# # --exclude #g#")"
PYTHONPATH=. ./share/lava-schema.py job ${CMD} lava_dispatcher/tests/sample_jobs/*.yaml
......
......@@ -152,6 +152,7 @@ actions:
hostID: ipv4 # messageID
host_key: ipaddr # message key
method: ssh
connection: ssh
- test:
role:
......
......@@ -96,6 +96,7 @@ actions:
role:
- guest
method: ssh
connection: ssh
prompts:
- 'root@linaro-developer:'
parameters:
......
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 Linaro Limited
#
# Author: Rémi Duraffort <remi.duraffort@linaro.org>
#
# This file is part of LAVA.
#
# LAVA is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# LAVA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along
# with this program; if not, see <http://www.gnu.org/licenses>.
from voluptuous import Msg, Optional, Required
from lava_common.schemas import boot
def schema():
base = {
Required("method"): Msg(
"new_connection", "'method' should be 'new_connection'"
),
Required("connection"): str,
Optional("prompts"): boot.prompts(),
Optional(
"auto_login"
): boot.auto_login(), # TODO: if auto_login => prompt is required
Optional("transfer_overlay"): boot.transfer_overlay(),
}
return {**boot.schema(), **base}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment