Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
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")
Exemple #4
0
def test_collector_delete_invalid_request():
    collector = Collector()
    collector.connect(host="192.168.179.130", username="******", password="******")
    collector.delete(path=None, filename=None)