def GetInfoMsg(): infoMsg = "Manage Docker Swarm\r\n" infoMsg += "Add '-start' to arguments to start swarm with all stacks deployed and properties created (networks, secrets, configs..).\r\n" infoMsg += "Add '-stop' to arguments to stop swarm with all stacks and properties removed.\r\n" infoMsg += "Add '-restart' to arguments to restart swarm.\r\n" infoMsg += "Otherwise:\r\n\r\n" infoMsg += "Deploy Or Remove Stacks:\r\n" infoMsg += SwarmStacks.GetInfoMsg() + "\r\n\r\n" infoMsg += "Create Or Remove Networks:\r\n" infoMsg += SwarmNetworks.GetInfoMsg() + "\r\n\r\n" infoMsg += "Create Or Remove Configs:\r\n" infoMsg += SwarmConfigs.GetInfoMsg() + "\r\n\r\n" infoMsg += "Create Or Remove Secrets:\r\n" infoMsg += SwarmSecrets.GetInfoMsg() + "\r\n\r\n" infoMsg += "Create Or Remove Volumes:\r\n" infoMsg += SwarmVolumes.GetInfoMsg() + "\r\n\r\n" infoMsg += "Additional Info:\r\n" infoMsg += SwarmTools.GetInfoMsg() + "\r\n\r\n" infoMsg += "Add '-help' to arguments to print this info again.\r\n\r\n" return infoMsg
def test_getInforMsg_success(self): self.assertIsNotNone(SwarmTools.GetInfoMsg())