Skip to content
Snippets Groups Projects
Unverified Commit 877742a2 authored by Andrea Franchini's avatar Andrea Franchini
Browse files

Fix mc_openapi tests

parent 53216da0
No related branches found
No related tags found
No related merge requests found
......@@ -554,9 +554,9 @@ def ed_vm_iface(solver: Solver, smtsorts: SMTSorts, intermediate_model: Intermed
vm_name = get_user_friendly_name(
intermediate_model, solver.model(), vm)
if vm_name:
return f"Virtual machine {vm_name} is connected to no network interface."
return f"Virtual machine {vm_name} is not connected to any network interface."
except:
return "A virtual machine is connected to no network interface."
return "A virtual machine is not connected to any network interface."
def ed_software_package_iface_net(solver: Solver, smtsorts: SMTSorts, intermediate_model: IntermediateModel) -> str:
......
......@@ -36,7 +36,8 @@ def post(body, version=None):
user_req_str_consts = []
# Add support for Requirements in DOML
if dmc.doml_version == DOMLVersion.V2_2:
if (dmc.doml_version == DOMLVersion.V2_2
or dmc.doml_version == DOMLVersion.V2_2_1):
domlr_parser = Parser(DOMLRTransformer)
model = get_pyecore_model(doml_xmi, DOMLVersion.V2_2)
func_reqs = model.functionalRequirements.items
......
......@@ -28,12 +28,12 @@ def test_post_faas_unsat_V2_0():
def test_post_common_reqs_V2_0():
check_strings = [
"is connected to no network interface.",
"is not connected to any network interface.",
"but they are deployed to nodes that cannot communicate through a common network.",
"share the same IP address.",
"is not deployed to any abstract infrastructure node.",
"has not been mapped to any element in the active concretization.",
"is mapped to no abstract infrastructure element."
"is not mapped to any element in the active concretization.",
"is not mapped to any abstract infrastructure element."
]
for req, err_desc in zip(CommonRequirements[DOMLVersion.V2_0].get_all_requirements(), check_strings):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment