Commit Graph

337 Commits (8392a84c831e7faa12b43f7fbb611dda1a9735f8)

Author SHA1 Message Date
Raphaël Vinot 7d490096fe chg: Add print in testlive to debug travis 2018-10-30 18:28:49 +01:00
Raphaël Vinot f46e7f50c9 fix: test cases 2018-10-25 18:19:13 -04:00
Raphaël Vinot 0a2a6b3d6b new: Allow to pass csv to return_format in search 2018-10-21 22:58:07 -04:00
Raphaël Vinot a8a7193059 new: page/limit in search 2018-10-21 18:49:38 -04:00
Raphaël Vinot cb2dbbd481 fix: Test cases sample files 2018-10-12 15:52:08 +02:00
Raphaël Vinot 9a2610a61f chg: More test cases 2018-10-05 17:45:12 +02:00
Raphaël Vinot 1dc2f664d1 fix: disable test for travis, take 2 2018-09-29 16:12:06 -04:00
Raphaël Vinot 0d1675e154 fix: disable test for travis 2018-09-29 16:00:28 -04:00
Raphaël Vinot c08deb95b6 new: tests for update modules 2018-09-29 15:44:02 -04:00
Raphaël Vinot 2dbd21a752 new: tests for upload_sample 2018-09-29 15:11:42 -04:00
Raphaël Vinot 01899ecfb7 new: Add more test cases 2018-09-28 10:36:56 -04:00
Raphaël Vinot ba02c6c766 fix: Skip tests that fail on travis for no reason... 2018-09-27 12:56:30 -04:00
Raphaël Vinot 442ba07175 chg: Add an extra IP from the warninglists 2018-09-25 13:11:22 -04:00
Raphaël Vinot 8c473b0e06 fix: Tentative to fix tests on travis 2018-09-25 12:00:56 -04:00
Raphaël Vinot b95fdf9218 new: Update warninglists 2018-09-25 10:32:32 -04:00
Raphaël Vinot da0f6ef7d2 new: Add test for warninglists 2018-09-25 09:32:17 -04:00
Raphaël Vinot 532157f3c9 chg: test for event UUID in attribute 2018-09-21 13:33:22 -07:00
Raphaël Vinot e9d82ea02e fix: Disable test warning lists. Enabling is not deterministic. 2018-09-21 13:22:37 -07:00
Raphaël Vinot b636a320df new: toggle warning list, add test case 2018-09-21 13:02:15 -07:00
Raphaël Vinot f3a28f464d fix: Make travis happy again 2018-09-19 17:42:41 -07:00
Raphaël Vinot 2607111b19 add: more test cases 2018-09-19 17:22:37 -07:00
Raphaël Vinot e56f70b722 new: Add lots of test cases, find lots of bugs 2018-09-18 21:58:20 -07:00
Raphaël Vinot cd1de8c6bf New: use new CSV interface, add test cases 2018-09-17 18:37:07 -07:00
Raphaël Vinot ceedb6e95c fix: Python2 support.
Fix #274
2018-09-17 13:59:28 -07:00
Raphaël Vinot 8b8459ce53 fix: normalizing the outputs 2018-08-28 17:30:07 -04:00
Raphaël Vinot 47fc0ac3c6 fix: tests are passing fine now 2018-08-21 14:34:35 +02:00
Raphaël Vinot 11aaebb5df chg: Fix testing 2018-08-21 11:35:36 +02:00
Raphaël Vinot 3ee90602ea chg: More testing improvments 2018-08-21 11:16:51 +02:00
Raphaël Vinot 99271bac24 chg: Finish rewrite testing 2018-08-21 00:32:27 +02:00
Raphaël Vinot 5b76f0a262 chg: rework test cases 2018-08-20 18:27:06 +02:00
Raphaël Vinot 303079af3b chg: Add more test cases 2018-08-19 14:35:32 +02:00
Raphaël Vinot 2c03fb96c2 new: [test] Attribute modification 2018-08-17 15:09:17 +02:00
Raphaël Vinot 75b15af427 fix: properly validate the last-type search query 2018-08-13 13:31:35 +02:00
Raphaël Vinot 9669d892c5 chg: make it possible to run the tests manually. 2018-08-12 22:46:21 +02:00
Raphaël Vinot d557bf0823 fix: Live test failing on list order 2018-08-12 22:13:29 +02:00
Raphaël Vinot 21ea2e969b chg: print error message 2018-08-12 01:21:49 +02:00
Raphaël Vinot 739ab41896 new: More test cases, bug fixes 2018-08-10 19:04:02 +02:00
Raphaël Vinot fcb83f7318 new: Reworking the REST API (WiP) 2018-08-09 18:12:05 +02:00
Raphaël Vinot 3b42497967 fix: Opening the json blobs as bytes was buggy 2018-08-08 10:18:51 +02:00
Raphaël Vinot 29f96435f4 fix: One more failing test 2018-07-23 10:22:20 +02:00
Raphaël Vinot 673063e071 fix: Tests were failing 2018-07-23 10:19:21 +02:00
Raphaël Vinot 457758b350 fix: Test cases & attributes automatically getting an UUID 2018-05-03 21:36:40 +02:00
Raphaël Vinot c5be2f2f86 fix: Tests, new template version. 2018-04-22 19:25:52 +02:00
Raphaël Vinot a35db89102 fix: New key - extends_uuid 2018-04-12 18:34:50 +02:00
Raphaël Vinot 0be3f78412 fix: Update test file accordingly to the default value 2018-04-05 11:44:34 +02:00
Raphaël Vinot f8c18c027e fix: test files 2018-03-22 16:19:02 +01:00
Raphaël Vinot 0b945556ec fix: Update reference test cases 2018-02-13 11:37:26 +01:00
Raphaël Vinot 05bbfac658 fix: Encode string in _encode_file_to_upload 2018-01-29 10:30:37 +01:00
Raphaël Vinot bdf1dfe63c fix: Only skip test for 3.0->3.5 2018-01-28 20:40:09 +01:00
Raphaël Vinot ab9e6aabf5 fix: sys.api_version -> sys.version_info 2018-01-26 21:41:53 +01:00
Raphaël Vinot 1cb1672998 chg: Skip sample upload test on python 3.4 2018-01-26 21:36:09 +01:00
Louis LCE 3d6fa51a7a Add tag test 2018-01-24 16:19:53 +01:00
Louis LCE c80bef0e0d Add a simple test for uploading samples 2018-01-24 15:31:09 +01:00
Louis LCE 2b1546ab43 Improve and refactor attributes tests 2018-01-24 15:19:31 +01:00
Louis LCE f122cdca90 Fix add_hashes test function parameters 2018-01-12 22:01:08 +01:00
Raphaël Vinot b733ddbdb0 chg: Improve Object Attribute editing 2018-01-12 16:15:09 +01:00
Raphaël Vinot 4e36ac34dc fix: Make python2 happy. 2018-01-12 00:45:34 +01:00
Raphaël Vinot 8d9a5af8d3 chg: Allow to pass a directory with custom object templates 2018-01-12 00:38:15 +01:00
Raphaël Vinot a01e7f5e27 fix: edited method works as expected, add tests. 2018-01-05 19:17:25 +01:00
Raphaël Vinot 8ce7a497af fix: Forgotten test files in last commit... 2018-01-05 11:38:10 +01:00
Raphaël Vinot 4a95a54501 fix: disable_correlation from template not properly used 2018-01-05 11:34:08 +01:00
Raphaël Vinot b41f057855 chg: Fix tests (new template version) 2018-01-04 17:50:52 +01:00
Raphaël Vinot 53eb22cac5 chg: Add test for loading existing malware sample from MISP 2018-01-04 17:12:15 +01:00
Raphaël Vinot bb1aac5720 chg: Multiple changes
* Fix timestamp dump (properly enforce UTC)
* Properly handle proposals
* Add many getter/setter
* Add dedicated test cases for MISPEvent and other objects
2018-01-04 16:43:19 +01:00
Stefan Hagen (Individual) f68faf7c61 further tests added (for public methods) 2017-12-11 15:27:50 +01:00
Stefan Hagen (Individual) 635c02eadc changed asserts from dict usecases to set comparison to workaround non 3.6 behavior 2017-12-11 14:18:06 +01:00
Stefan Hagen (Individual) 207e1f195e Merge branch 'master' of https://github.com/MISP/PyMISP into first-friendly-contribution-enhance-coverage 2017-12-11 14:04:04 +01:00
Stefan Hagen (Individual) e7f395a92c enhance coverage and fix en passant with focus on api 2017-12-11 14:00:43 +01:00
Raphaël Vinot 7946e2ef83 fix: Disable pseudofile support in py2, skip tests. 2017-12-09 13:35:44 +01:00
Raphaël Vinot 52e079fea2 chg: Allow to pass a pseudofile to LIEF 2017-12-09 13:12:04 +01:00
Raphaël Vinot f4439ae970 chg: Add live tests for recommended pymisp version and describeTypes up-to-date 2017-12-01 16:15:46 +01:00
Raphaël Vinot 7ea7ca07d1 fix: Typo in the tests 2017-12-01 14:40:52 +01:00
Raphaël Vinot 9a2b82a2ae chg: Add a way to check if the ACL is up-to-date 2017-12-01 14:35:19 +01:00
Raphaël Vinot 20987f7f0f fix: Typo in live tests 2017-12-01 14:08:51 +01:00
Raphaël Vinot eb5cf6c06c chg: Add validators for describeTypes on the live instance 2017-12-01 14:02:04 +01:00
Raphaël Vinot 2e46f00055 fix: Bump describeTypes.json
Add testing
2017-12-01 10:36:09 +01:00
Raphaël Vinot a8daa9b972 Fix test suite 2017-10-25 11:17:25 -04:00
Raphaël Vinot 7e797e5f6f fix: live tests 2017-09-20 16:02:18 +01:00
Sebastian Wagner 0790e571a1
TST: skip test with optional files if not existing 2017-09-20 11:34:16 +02:00
Raphaël Vinot b1989f16f2 Merge branch 'objects' 2017-09-18 11:43:48 +01:00
Raphaël Vinot da2b28a927 Use MISPAbstract as a master class everywhere.
This is probably breaking everything.... ¯\_(ツ)_/¯
2017-09-12 16:46:06 +02:00
Raphaël Vinot 2bc0745fbf Refactoring in order to load objects 2017-08-28 19:16:20 +02:00
Raphaël Vinot 38a488c70c Update tests 2017-08-25 17:14:33 +02:00
Raphaël Vinot 6d06b77d76 Improve event ID detection in publish method 2017-08-04 19:30:40 +02:00
Raphaël Vinot 622a5701ee Fix typo in variable name. 2017-07-27 17:14:49 +02:00
Raphaël Vinot 49de3a8951 Remove useless import 2017-07-20 10:22:20 +02:00
Raphaël Vinot d75cb6eacb Update offline tests 2017-04-13 17:02:48 +02:00
Raphaël Vinot 4a2021f244 Fix testing 2017-04-13 16:56:28 +02:00
Adrien RAFFIN b32332a0a2 test: add test for user and organisation
This is a proposition of test to create a user and an organisation in MISP
2017-04-13 12:17:27 +02:00
Raphaël Vinot 7b60a7355c Update test file 2017-04-07 18:54:43 +02:00
Raphaël Vinot 38f2dbe94d Add an attributes to an event without sending the full existing event 2017-03-15 11:33:24 +01:00
iglocska 97e799e68a Small change to make travis happy
- attribute_count default changed to 0 in misp
2017-03-10 16:32:15 +01:00
Raphaël Vinot 166724828c Fix tests 2017-03-09 16:41:07 +01:00
Raphaël Vinot 402018e528 Update tests.
Fix #86
2017-02-23 14:42:33 +01:00
iglocska 0f6d7907c2 Merge branch 'master' into travisfix 2017-02-21 10:02:39 +01:00
iglocska a673377a37 added creator email field to the assertions 2017-02-21 09:39:26 +01:00
Raphaël Vinot 26a8f4c662 Fix travis online 2017-02-10 17:55:39 +01:00
Raphaël Vinot cc3176fe38 Fix testing 2017-01-27 13:17:38 +01:00
Raphaël Vinot 619538ced7 Fix travis 2017-01-16 15:41:17 -05:00
Hannah Ward cfb8572ab1
new: Added ability to add attachments to events 2017-01-13 13:15:53 +00:00
Raphaël Vinot 15fb54b032 Update tests 2017-01-11 14:50:58 -05:00
Raphaël Vinot 2f967268d1 Add new key in online test 2017-01-06 21:03:02 -05:00
Raphaël Vinot 8cec9377c1 Fix tests 2016-12-07 14:35:49 +01:00
Raphaël Vinot db182ce286 Ignore order in event 2016-12-07 11:32:14 +01:00
Iglocska 13dbaef5b7 Added galaxyies to the test 2016-12-07 10:01:55 +01:00
Raphaël Vinot d75d02b5eb Fix merge conflict, make pep8 happy. 2016-12-03 17:29:41 +01:00
morallo 68ced070e4 Added test for search_index by tag string 2016-12-02 18:52:56 +01:00
morallo a6a851f38d Solved warnings in tests when run under Python3 2016-12-02 16:53:45 +01:00
morallo 31cf37fa02 Added test case for search_index by tag 2016-12-02 16:52:00 +01:00
Nicolas Bareil 59b7d19970 map() is a generator in Python3 2016-12-01 14:26:59 +01:00
Nicolas Bareil fff3a66d09 Unit-tests 2016-12-01 10:49:12 +01:00
Raphaël Vinot 8be38693b7 Fix test 2016-10-10 13:42:06 +02:00
Raphaël Vinot dcd76ec5c4 Fix python 2.7 support, add missing test file 2016-09-28 18:50:05 +02:00
Raphaël Vinot 6482a21834 More cleanup 2016-09-28 18:20:37 +02:00
Raphaël Vinot e035922949 Getting closed to a full support of a misp event as a Python Object 2016-09-27 19:47:22 +02:00
Raphaël Vinot cd25559c94 Fix flattening, fix python2.7 2016-08-27 18:13:15 +02:00
Raphaël Vinot 8dbeec3f96 Cleanup create_events 2016-08-26 18:25:39 +02:00
Raphaël Vinot 1532bc879f Improve testing 2016-08-26 18:23:02 +02:00
Raphaël Vinot 0dbf7564ec add auth error test 2016-08-19 10:13:00 +02:00
Raphaël Vinot cdc77de598 Add some more tests 2016-08-18 13:18:58 +02:00
Raphaël Vinot a4acc5d147 Add tests 2016-08-18 00:40:30 +02:00
Raphaël Vinot cdcb1cca5e Update testing 2016-08-18 00:23:49 +02:00
Raphaël Vinot 33a2f0603e Add travis 2016-08-17 18:36:01 +02:00
Raphaël Vinot 24e328f737 Add forgotten files 2016-08-17 18:24:17 +02:00
Raphaël Vinot 0134e2a9e3 Initial version of the offline TestCases
Related #56
2016-08-17 18:21:50 +02:00
Jurriaan Bremer f23a7c3357 allow multiple attributes to be sent off at once
Slightly worked out version of the suggestion by doomedraven in #42.
2016-08-16 11:44:08 +02:00
Raphaël Vinot 2722540322 Fix tests 2016-08-12 14:30:50 +02:00
Sebastian Wagner 45379a1158
Fix prints in tests
Signed-off-by: Sebastian Wagner <sebix@sebix.at>
2016-08-10 15:15:55 +02:00
Hannah Ward 414ddaec01
Added STIX retrieval
- misp.get_stix(event_id=ID, with_attachment=True/False,
			from_date=YYYY-MM-DD, to_date=YYYY-MM-DD,
			tags=["tag1", "tag2"]
	                )
2016-07-14 12:55:37 +01:00
Raphaël Vinot 3a2414bc8c Update testcases for 2.4 2016-01-04 17:51:15 +01:00
Raphaël Vinot a334055749 Add debug option 2015-11-25 09:51:22 +01:00
iglocska 6407693671 reverted my previous commit that broke an assertion 2015-11-13 11:22:04 +01:00
iglocska de91860d5d Print the event so we can see what travis is trying to compare against
- should help with the debugw
2015-11-13 11:10:53 +01:00
iglocska dbe87b6ebd Fixed an invalid assertion
- attribute count is None not u'0' when no attributes exist (should be fixed on MISP side in the long run)
2015-11-13 10:49:03 +01:00
iglocska fc1193e53e Fixed a typo causing the tests to fail 2015-11-13 10:47:32 +01:00
Raphaël Vinot 1ac11fa28b [UnitTest] Add some functions, testing. 2015-09-26 21:00:33 +02:00
Raphaël Vinot 81fa4e5bdd Add test cases (initial) 2015-09-22 15:25:47 +02:00