From 62bb273dfa7e4fc1cbfa1c2d7346800499311a4a Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Thu, 31 Jan 2019 11:14:43 +0100 Subject: [PATCH] Add two smoke tests (the real deal) --- .travis/tests/03-oned.sh | 26 ++++++++++++++++++++++++++ .travis/tests/04-sunstone.sh | 21 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .travis/tests/03-oned.sh create mode 100644 .travis/tests/04-sunstone.sh diff --git a/.travis/tests/03-oned.sh b/.travis/tests/03-oned.sh new file mode 100644 index 0000000000..bda6b0299a --- /dev/null +++ b/.travis/tests/03-oned.sh @@ -0,0 +1,26 @@ +# -------------------------------------------------------------------------- # +# Copyright 2002-2019, OpenNebula Project, OpenNebula Systems # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +# install oned system wide + +sudo ./install.sh + +# start oned + +one start + +# check it's up +timeout 60 sh -c 'until nc -z $0 $1; do sleep 1; done' localhost 2633 diff --git a/.travis/tests/04-sunstone.sh b/.travis/tests/04-sunstone.sh new file mode 100644 index 0000000000..3c61d1788a --- /dev/null +++ b/.travis/tests/04-sunstone.sh @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------- # +# Copyright 2002-2019, OpenNebula Project, OpenNebula Systems # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +# start sunstone +sunstone-server start + +# check it's up +timeout 60 sh -c 'until nc -z $0 $1; do sleep 1; done' localhost 9869