1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Add two smoke tests (the real deal)

This commit is contained in:
Tino Vazquez 2019-01-31 11:14:43 +01:00 committed by Tino Vázquez
parent 612300b191
commit 62bb273dfa
2 changed files with 47 additions and 0 deletions

26
.travis/tests/03-oned.sh Normal file
View File

@ -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

View File

@ -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