def test_collector_delete_insufficient_permissions_on_requested_file(): timestamp = datetime.datetime.now().strftime("%Y%m%d.%H") uta_label = "#" + "M.U1" + "." + timestamp + "#" filename = "ia.icama." + uta_label + ".zip" collector = Collector() collector.connect(host="192.168.179.130", username="******", password="******") collector.delete(path="/home/fastfile/transfer", filename=filename)
def test_collector_delete_source_path_does_not_exist(): timestamp = datetime.datetime.now().strftime("%Y%m%d.%H") uta_label = "#" + "M.U1" + "." + timestamp + "#" filename = "ia.icama." + uta_label + ".zip" collector = Collector() collector.connect(host="192.168.179.130", username="******", password="******") collector.delete(path="/home/fastfile/nonexistant", filename=filename)
def test_collector_delete_file_does_not_exist(): collector = Collector() collector.connect(host="192.168.179.130", username="******", password="******") collector.delete(path="/home/fastfile/transfer", filename="nonexistant")
def test_collector_delete_invalid_request(): collector = Collector() collector.connect(host="192.168.179.130", username="******", password="******") collector.delete(path=None, filename=None)