ec8602f95ff5916925c54a9adfc867112b2d5b70,poseidon/poseidonStorage/test_poseidonStorage.py,,test_db_add_one_doc,#Any#,154

Before Change


                       "last_sent": "0-0-0 00:00:00.000000",
                       "last_received": "0-0-0 00:00:00.000000"}
            }
    doc = urllib.unquote(doc).encode("utf8")
    get_str = "/v1/storage/add_one_doc/poseidon_records/network_graph/" + doc
    resp = client.get(get_str)
    assert resp.status == falcon.HTTP_OK

After Change


    using the returned id, then tests that the collection
    inserted into is listed under the database collections.
    
    doc = {}
    doc["node_ip"] = "0.0.0.0"
    doc["talked_to"] = {"machine_1": 2,
                        "machine_2": 1,
                        "machine_3": 1}
    doc["recieved_from"] = {"machine_1": 1,
                            "machine_6": 3,
                            "machine_2": 2}
    doc["packet_lengths"] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    doc["flow_id"] = "6a32984d2348e23894f3298"
    doc["dns_records"] = ["0.0.0.0", "1.1.1.1"]
    doc["time_rec"] = {"first_sent": "0-0-0 00:00:00.000000",
                       "first_received": "0-0-0 00:00:00.000000",
                       "last_sent": "0-0-0 00:00:00.000000",
                       "last_received": "0-0-0 00:00:00.000000"}
    doc = bson.BSON.encode(doc)
    get_str = "/v1/storage/add_one_doc/poseidon_records/network_graph/" + doc
    resp = client.get(get_str)
    assert resp.status == falcon.HTTP_OK
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: CyberReboot/poseidon
Commit Name: ec8602f95ff5916925c54a9adfc867112b2d5b70
Time: 2016-08-09
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_one_doc


Project Name: CyberReboot/poseidon
Commit Name: ec8602f95ff5916925c54a9adfc867112b2d5b70
Time: 2016-08-09
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs


Project Name: CyberReboot/poseidon
Commit Name: 262f2dd76cd516d0be4a73e87e72a39938a18795
Time: 2016-08-10
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs


Project Name: CyberReboot/poseidon
Commit Name: ec8602f95ff5916925c54a9adfc867112b2d5b70
Time: 2016-08-09
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_one_doc