Do not hardcode MDBCI box for Clustrix

This commit is contained in:
Timofey Turenko
2020-10-19 14:30:41 +03:00
parent 2da2952168
commit 49b2471cbb
3 changed files with 8 additions and 5 deletions

View File

@ -2264,7 +2264,8 @@ int TestConnections::call_mdbci(const char* options)
int TestConnections::process_mdbci_template()
{
string box = envvar_get_set("box", "centos_7_libvirt");
envvar_get_set("backend_box", "%s", box.c_str());
string backend_box = envvar_get_set("backend_box", "%s", box.c_str());
envvar_get_set("clustrix_box", "%s", backend_box.c_str());
envvar_get_set("target", "develop");
envvar_get_set("vm_memory", "2048");

View File

@ -60,6 +60,8 @@ test_env_list=(
"name"
"target"
"box"
"backend_box"
"clustrix_box"
"product"
"version"
"do_not_destroy_vm"

View File

@ -359,7 +359,7 @@
"clustrix_000" :
{
"hostname" : "clustrix000",
"box" : "centos_7_gcp",
"box" : "${clustrix_box}",
"memory_size" : "16192",
"labels" : [
"CLUSTRIX_BACKEND"
@ -369,7 +369,7 @@
"clustrix_001" :
{
"hostname" : "clustrix001",
"box" : "centos_7_gcp",
"box" : "${clustrix_box}",
"memory_size" : "16192",
"labels" : [
"CLUSTRIX_BACKEND"
@ -379,7 +379,7 @@
"clustrix_002" :
{
"hostname" : "clustrix002",
"box" : "centos_7_gcp",
"box" : "${clustrix_box}",
"memory_size" : "16192",
"labels" : [
"CLUSTRIX_BACKEND"
@ -390,7 +390,7 @@
{
"hostname" : "clustrix003",
"memory_size" : "16192",
"box" : "centos_7_gcp",
"box" : "${clustrix_box}",
"labels" : [
"CLUSTRIX_BACKEND"
]