#2405 refactor e2e test, fix uninstalled apps not being removed from the request manager

This commit is contained in:
Cristian-VM2
2024-03-28 15:34:47 +00:00
parent 1e1eea47f1
commit cfea38c5a7
2 changed files with 22 additions and 6 deletions

View File

@@ -1343,7 +1343,7 @@ class Node(SimComponent):
else:
pass
if application in self:
if application_instance.name in self.software_manager.software:
return True
else:
return False
@@ -1367,7 +1367,7 @@ class Node(SimComponent):
application_instance = self.software_manager.software.get(
str(application.__name__)
) # This works because we can't have two applications with the same name on the same node
self.uninstall_application(application_instance)
# self.uninstall_application(application_instance)
self.software_manager.uninstall(application_instance.name)
if application_instance.name not in self.software_manager.software:
@@ -1406,4 +1406,6 @@ class Node(SimComponent):
def __contains__(self, item: Any) -> bool:
if isinstance(item, Service):
return item.uuid in self.services
elif isinstance(item, Application):
return item.uuid in self.applications
return None