ec8602f95ff5916925c54a9adfc867112b2d5b70,poseidon/poseidonStorage/test_poseidonStorage.py,,test_db_add_many_docs,#Any#,189
Before Change
doc_thr = {node_ip: "3.3.3.3", packet_lengths: [13, 21, 34]}
doc_list = [doc_one, doc_two, doc_thr]
doc_list = str(doc_list)
doc_list = urllib.unquote(doc_list).encode("utf8")
get_str = "/v1/storage/add_many_docs/poseidon_records/network_graph/" + doc_list
resp = client.get(get_str)
assert resp.status == falcon.HTTP_OK
After Change
NOTE: the url is a string of concatenated
bson encoded docs (map objects)
doc_one = {}
doc_one["node_ip"] = "1.1.1.1"
doc_one["packet_lengths"] = [1, 1, 2]
doc_two = {}
doc_two["node_ip"] = "2.2.2.2"
doc_two["packet_lengths"] = [3, 5, 8]
doc_thr = {}
doc_thr["node_ip"] = "3.3.3.3"
doc_thr["packet_lengths"] = [13, 21, 34]
doc_list = [doc_one, doc_two, doc_thr]
doc_str = ""
for doc in doc_list:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
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_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
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