Skip to content
Snippets Groups Projects
Commit f995b64b authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

use jobmanagertype attr name in parser and tests, re #11460

parent 146e9e99
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ ComputeResourceInfo::ComputeResourceInfo(const FacilityInfo *fac, ...@@ -40,7 +40,7 @@ ComputeResourceInfo::ComputeResourceInfo(const FacilityInfo *fac,
// default: Mantid web service API: // default: Mantid web service API:
// http://www.mantidproject.org/Remote_Job_Submission_API // http://www.mantidproject.org/Remote_Job_Submission_API
m_managerType = "MantidWebServiceAPIJobManager"; m_managerType = "MantidWebServiceAPIJobManager";
std::string type = elem->getAttribute("JobManagerType"); std::string type = elem->getAttribute("jobmanagertype");
if (!type.empty()) { if (!type.empty()) {
m_managerType = type; m_managerType = type;
} }
......
...@@ -105,7 +105,7 @@ public: ...@@ -105,7 +105,7 @@ public:
void test_normalSCARF() { void test_normalSCARF() {
const std::string scarf = "<computeResource name=\"" + scarfName + const std::string scarf = "<computeResource name=\"" + scarfName +
"\" JobManagerType=\"" + scarfType + "\">" "\" jobmanagertype=\"" + scarfType + "\">"
"<baseURL>" + "<baseURL>" +
scarfURL + "</baseURL>" scarfURL + "</baseURL>"
"</computeResource>"; "</computeResource>";
...@@ -139,7 +139,7 @@ public: ...@@ -139,7 +139,7 @@ public:
void test_brokenSCARF() { void test_brokenSCARF() {
const std::string type = "SCARFLSFJobManager"; const std::string type = "SCARFLSFJobManager";
const std::string err = "<computeResource foo=\"" + scarfName + const std::string err = "<computeResource foo=\"" + scarfName +
"\" JobManagerType=\"" + type + "\">" "\" jobmanagertype=\"" + type + "\">"
"<URL>" + "<URL>" +
scarfURL + "</URL>" scarfURL + "</URL>"
"</computeResource>"; "</computeResource>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment