Permalink
Browse files

Add a basic smoketest for MySQL

  • Loading branch information...
1 parent a69bcb6 commit fe79965f81d75d2727d925b5972c93a693ed1fc8 @VictorLowther VictorLowther committed Dec 2, 2011
Showing with 1 addition and 27 deletions.
  1. +1 −1 smoketest/00-check-mysql.test
  2. +0 −26 smoketest/00-deploy-mysql.hook
@@ -15,7 +15,7 @@
#
mysql_nodes="$(knife_node_find 'roles:mysql-server' FQDN)"
-[[ $mysql_node ]] || {
+[[ $mysql_nodes ]] || {
echo "Could not find node with the mysql-server role!"
exit 1
}
@@ -1,26 +0,0 @@
-#!/bin/bash
-# Copyright 2011, Dell
-#
-# 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.
-#
-cd "$HOME/testing/cli"
-echo "Deploying Mysql..."
-crowbar mysql proposal create cluster1
-if ! crowbar mysql proposal commit cluster1; then
- echo "mysql failed to deploy."
- crowbar mysql proposal show cluster1 >"$LOGDIR/mysql-failed.json"
- exit 1
-fi
-echo "Mysql deployed."
-crowbar mysql show cluster1 >"$LOGDIR/mysql-deployed.json"
-exit 0

0 comments on commit fe79965

Please sign in to comment.