diff --git a/maxscale-system-test/mdbci/create_config.sh b/maxscale-system-test/mdbci/create_config.sh index 14cbb3f42..1e2795486 100755 --- a/maxscale-system-test/mdbci/create_config.sh +++ b/maxscale-system-test/mdbci/create_config.sh @@ -7,12 +7,6 @@ export script_dir="$(dirname $(readlink -f $0))" . ${script_dir}/set_run_test_variables.sh -${mdbci_dir}/repository-config/generate_all.sh repo.d -${mdbci_dir}/repository-config/maxscale-ci.sh $target repo.d - - -export repo_dir=$dir/repo.d/ - export provider=`${mdbci_dir}/mdbci show provider $box --silent 2> /dev/null` export backend_box=${backend_box:-"centos_7_"$provider} @@ -33,7 +27,7 @@ fi $(<${script_dir}/templates/${template}.json.template) " 2> /dev/null > ${MDBCI_VM_PATH}/${name}.json -${mdbci_dir}/mdbci --override --template ${MDBCI_VM_PATH}/${name}.json --repo-dir ${repo_dir} generate $name +${mdbci_dir}/mdbci --override --template ${MDBCI_VM_PATH}/${name}.json generate $name mkdir ${MDBCI_VM_PATH}/$name/cnf cp -r ${script_dir}/cnf/* ${MDBCI_VM_PATH}/$name/cnf/ diff --git a/maxscale-system-test/mdbci/run_test_snapshot.sh b/maxscale-system-test/mdbci/run_test_snapshot.sh index f0e99baef..a3e6c643d 100755 --- a/maxscale-system-test/mdbci/run_test_snapshot.sh +++ b/maxscale-system-test/mdbci/run_test_snapshot.sh @@ -43,8 +43,6 @@ done touch ${snapshot_lock_file} echo $JOB_NAME-$BUILD_NUMBER >> ${snapshot_lock_file} -export repo_dir=$dir/repo.d/ - ${mdbci_dir}/mdbci snapshot revert --path-to-nodes $name --snapshot-name $snapshot_name if [ $? != 0 ]; then @@ -60,14 +58,11 @@ fi . ${script_dir}/set_env.sh "$name" -${mdbci_dir}/repository-config/maxscale-ci.sh $target repo.d - - ${mdbci_dir}/mdbci sudo --command 'yum remove maxscale -y' $name/maxscale ${mdbci_dir}/mdbci sudo --command 'yum clean all' $name/maxscale -${mdbci_dir}/mdbci setup_repo --product maxscale $name/maxscale --repo-dir $repo_dir -${mdbci_dir}/mdbci install_product --product maxscale $name/maxscale --repo-dir $repo_dir +${mdbci_dir}/mdbci setup_repo --product maxscale_ci --product-version ${target} $name/maxscale +${mdbci_dir}/mdbci install_product --product maxscale_ci $name/maxscale checkExitStatus $? "Error installing Maxscale" $snapshot_lock_file diff --git a/maxscale-system-test/mdbci/templates/big.json.template b/maxscale-system-test/mdbci/templates/big.json.template index 56c0330ee..eb7c36901 100644 --- a/maxscale-system-test/mdbci/templates/big.json.template +++ b/maxscale-system-test/mdbci/templates/big.json.template @@ -145,7 +145,8 @@ "hostname" : "maxscale", "box" : "centos_7_aws_large", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } } diff --git a/maxscale-system-test/mdbci/templates/big15.json.template b/maxscale-system-test/mdbci/templates/big15.json.template index 1297ea96a..0fe08cf4d 100644 --- a/maxscale-system-test/mdbci/templates/big15.json.template +++ b/maxscale-system-test/mdbci/templates/big15.json.template @@ -222,7 +222,8 @@ "hostname" : "maxscale", "box" : "centos_7_aws_large", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } } diff --git a/maxscale-system-test/mdbci/templates/default.json.template b/maxscale-system-test/mdbci/templates/default.json.template index 2376e46a7..1523eb6c2 100644 --- a/maxscale-system-test/mdbci/templates/default.json.template +++ b/maxscale-system-test/mdbci/templates/default.json.template @@ -110,7 +110,8 @@ "box" : "${box}", "memory_size" : "${vm_memory}", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } } diff --git a/maxscale-system-test/mdbci/templates/nogalera.json.template b/maxscale-system-test/mdbci/templates/nogalera.json.template index 31f03af0b..14b654a61 100644 --- a/maxscale-system-test/mdbci/templates/nogalera.json.template +++ b/maxscale-system-test/mdbci/templates/nogalera.json.template @@ -58,7 +58,8 @@ "box" : "${box}", "memory_size" : "${vm_memory}", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } } diff --git a/maxscale-system-test/mdbci/templates/performance.json.template b/maxscale-system-test/mdbci/templates/performance.json.template index a767f9fc2..8d5652cbd 100644 --- a/maxscale-system-test/mdbci/templates/performance.json.template +++ b/maxscale-system-test/mdbci/templates/performance.json.template @@ -60,7 +60,8 @@ "box" : "###box###", "memory_size" : "2048", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } } diff --git a/maxscale-system-test/mdbci/templates/twomaxscales.json.template b/maxscale-system-test/mdbci/templates/twomaxscales.json.template index a2c5b2258..a9ddc64f2 100644 --- a/maxscale-system-test/mdbci/templates/twomaxscales.json.template +++ b/maxscale-system-test/mdbci/templates/twomaxscales.json.template @@ -58,7 +58,8 @@ "box" : "${box}", "memory_size" : "${vm_memory}", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } }, @@ -69,7 +70,8 @@ "box" : "${box}", "memory_size" : "${vm_memory}", "product" : { - "name": "maxscale" + "name" : "maxscale_ci", + "version" : "${target}" } }