Add tests with backend SSL

A 'BACKEND_SSL' label added. If test has this label
Testconnection() configures backend servers to
require SSL
This commit is contained in:
Timofey Turenko
2019-09-13 14:12:49 +03:00
parent 8b43adada7
commit bdfd7341e7
5 changed files with 57 additions and 9 deletions

View File

@ -22,3 +22,10 @@ std::string get_mdbci_lables(const char *labels_string)
}
return mdbci_labels;
}
bool check_label(std::string labels, std::string label)
{
std::string labels_ext = std::string(";") + labels + std::string(";");
std::string label_ext = std::string(";") + label + std::string(";");
return (labels_ext.find(label_ext, 0) != std::string::npos);
}