[Issue#] N_SE-53206
[Problem] Instalaltion should fail in a proper way if the same elements of
appControl are specified twice.
[Cause] N/A
[Solution] Check for appControl similarity..
[Verification]
* Try to reproduce steps described in the issue tracker.
* Issue should not be reproduced.
Change-Id: I86e0e7754657a112e373c408a677293811c164ee
ThrowMsg(Exception::ParseError, "service element must have operation element");
}
+ auto res = std::find(m_data.appControlList.begin(), m_data.appControlList.end(), m_appControl);
+ if(res != m_data.appControlList.end()) {
+ ThrowMsg(Exception::ParseError, "service element must be unique");
+ }
+
m_data.appControlList.push_back(m_appControl);
}