Commit Graph

493 Commits (main)

Author SHA1 Message Date
Raphaël Vinot 795cc11881 fix: Change DNS warning list test 2022-09-09 16:25:03 +02:00
Tom King eb33a9deb9 chg: Add in sort/desc for sorting results and limit/page for pagination 2022-09-06 16:29:22 +01:00
Raphaël Vinot e77da00340 fix: delete sharing group after deleting the event 2022-08-05 10:29:38 +02:00
Raphaël Vinot 1f243dd7d0 fix: Give more time to MISP to publish the events before searching 2022-08-05 10:18:14 +02:00
Tom King 1ac66a927a chg: Add in test case 2022-06-06 11:51:41 +01:00
Alexandre Dulaunoy 156f6d9083
chg: [tests] reverted 2022-03-21 15:33:41 +01:00
Alexandre Dulaunoy c5646d7463
chg: [tests] subversion are supported 2022-03-17 09:22:39 +01:00
Alexandre Dulaunoy 94a65c578a
fix: [tests] check if the version is a substring as PyMISP might contain sub version 2022-03-09 12:38:56 +01:00
Raphaël Vinot 24e79c8340 new: get_new_authkey for a user 2022-03-03 15:07:28 +01:00
Raphaël Vinot bc37a03174 fix: Update live tests to support proper format of SGs 2021-11-30 11:41:53 +01:00
Raphaël Vinot 2bc689e3c7 chg: Slight changes regarding timezones 2021-10-28 16:11:46 -04:00
Jakub Onderka aba02ecd8c
fix: [tests] Remove debug prints 2021-10-19 15:54:30 +02:00
Raphaël Vinot ec4172dfba
Merge pull request #795 from tomking2/feature/sharing_group_improvements
Improve sharing groups, new get_sharing_group and return sharing group orgs
2021-10-14 14:51:11 +02:00
Raphaël Vinot e84d5a11f3
Merge pull request #794 from tomking2/feature/org_user_search
chg: Add ability to search against orgs and users by freetext search (both) or organisation (users)
2021-10-14 14:46:34 +02:00
Tom King 1248dd459f chg: Add in test case for searching against orgs and users 2021-10-13 11:33:07 +01:00
Tom King 12c92ca83a chg: Add in test case for get_sharing_group and validate orgs are present 2021-10-13 11:23:04 +01:00
Jakub Onderka 5064107093
Merge pull request #783 from JakubOnderka/fixes-149
Changes for upcoming MISP 2.4.150
2021-10-08 16:38:50 +02:00
chrisr3d fa68b58b66
fix: [tests] Fixed stix test 2021-10-08 14:54:03 +02:00
Raphaël Vinot 253730759a fix: Upload of STIX document with non-ascii characters
Due to: https://github.com/psf/requests/issues/5560

TL;DR: a variable of type str passed to data in a POST request will be
silently re-encoded to ISO-8859-1, making MISP barf on the other side.
2021-09-09 16:58:27 +02:00
Raphaël Vinot 0bdfb3892d chg: Bump live tests 2021-09-07 14:26:22 +02:00
Raphaël Vinot 8e5f4b7aba new: test cases for edit objects and upload stix 2021-09-03 15:25:45 +02:00
Jakub Onderka 545f149480 chg: [test] Check if all category types exists 2021-08-31 16:56:28 +02:00
Jakub Onderka 0abe34f106 fix: [test] Remove debug print 2021-08-31 16:55:25 +02:00
Jakub Onderka 2e698d70ba fix: [test] Correct error messages for blocked event 2021-08-31 16:54:46 +02:00
Raphaël Vinot 735fb88c37 chg: Remove test files 2021-08-17 12:51:04 +02:00
Raphaël Vinot a2dc13c5e5 chg: Automatically pull the malwares repo when running tests/testlive_comprehensive.py 2021-08-17 12:45:27 +02:00
Raphaël Vinot 4ec01bb096 chg: Add test for updating a objects from a custom template
Related: #776
2021-08-09 09:16:04 +02:00
Raphaël Vinot 81e7db14bb Merge branch 'JakubOnderka-to_dict_json_format' 2021-08-05 11:22:45 +02:00
Raphaël Vinot 630cb73dec chg: Remove duplicates tests 2021-08-05 11:19:58 +02:00
iglocska 70d716622e chg: [testlive_comprehensive] correct path to access sharing group releasability after edit 2021-08-05 11:12:54 +02:00
Jakub Onderka 475525429a fix: [test] test_sharing_groups 2021-08-05 11:11:42 +02:00
Jakub Onderka 9e71e859e9 new: Method `sharing_group_exists` 2021-08-05 11:11:42 +02:00
Jakub Onderka b963c41716 new: Method `update_sharing_group` 2021-08-05 11:11:40 +02:00
Raphaël Vinot 7f53761403 chg: properly validate update_sharing_group without pythonify 2021-08-05 11:11:06 +02:00
Raphaël Vinot 71ea0cc19d chg: Bump missing dep 2021-08-05 11:11:06 +02:00
iglocska 0bcd293c01 chg: [testlive_comprehensive] correct path to access sharing group releasability after edit 2021-08-05 11:11:04 +02:00
Jakub Onderka 379e1ded0a fix: [test] test_sharing_groups again 2021-08-05 11:10:33 +02:00
Jakub Onderka 9db0ddd14d fix: [test] test_sharing_groups 2021-08-05 11:10:33 +02:00
iglocska 8729adaed1 chg: [authkey test] removed from testlive_comprehensive
- the default now enables advanced authkeys making the retriaval of keys impossible after the user creation
2021-08-05 11:10:33 +02:00
Jakub Onderka 7ccf4c15d2 chg: Do not load schema for event when not necessary 2021-08-05 11:10:33 +02:00
Jakub Onderka 1746138eb3 chg: `get_taxonomy` supports namespace 2021-08-05 11:10:33 +02:00
Jakub Onderka 7dab091c85 new: Method `sharing_group_exists` 2021-08-05 11:10:31 +02:00
Jakub Onderka 88d0b4ac93 new: Method `update_sharing_group` 2021-08-05 11:09:33 +02:00
Raphaël Vinot a158bcd83f chg: properly validate update_sharing_group without pythonify 2021-08-05 10:50:40 +02:00
Raphaël Vinot dbc18408c1 chg: Bump missing dep 2021-08-05 10:45:17 +02:00
Raphaël Vinot 6e8a7e1e53
Merge branch 'main' into test-sharing-group-fix 2021-08-05 09:23:55 +02:00
iglocska ee8e9398da
chg: [testlive_comprehensive] correct path to access sharing group releasability after edit 2021-07-27 13:47:14 +02:00
Jakub Onderka bcaa8e0429 fix: [test] test_sharing_groups again 2021-07-27 13:06:45 +02:00
Jakub Onderka 5c5c30b238 fix: [test] test_sharing_groups 2021-07-26 17:11:40 +02:00
iglocska 6f12d3a6af
chg: [authkey test] removed from testlive_comprehensive
- the default now enables advanced authkeys making the retriaval of keys impossible after the user creation
2021-07-26 16:42:12 +02:00
Jakub Onderka 270d16cd4c new: `to_dict` method supports `json_format` parameter 2021-06-29 13:28:24 +02:00
Raphaël Vinot 22e1ae60fd
Merge pull request #764 from JakubOnderka/schema-lazy
chg: Do not load schema for event when not necessary
2021-06-28 10:18:01 -07:00
Jakub Onderka 82a6e488a3 chg: Do not load schema for event when not necessary 2021-06-28 18:39:55 +02:00
Raphaël Vinot 9db81ed052
Merge branch 'main' into update_sharing_group 2021-06-22 11:26:06 -07:00
Raphaël Vinot 4c003ca810
Merge pull request #760 from JakubOnderka/get-taxonomy-namespace
chg: `get_taxonomy` supports namespace
2021-06-22 11:24:15 -07:00
Jakub Onderka 77eeb10abb new: Method `update_sharing_group` 2021-06-22 17:48:53 +02:00
Jakub Onderka 3a92e343e5 chg: `get_taxonomy` supports namespace 2021-06-22 17:34:01 +02:00
Jakub Onderka 6842a2e2f4 new: Method `sharing_group_exists` 2021-06-22 17:20:30 +02:00
Raphaël Vinot db1ffe7be6 new: method to get the raw object template 2021-05-11 12:30:00 -07:00
Raphaël Vinot 18049212a5 new: Support for correlation exclusion list
Fix #732
2021-04-22 10:47:58 +02:00
Raphaël Vinot b471633acb fix: Enable/disable feeds 2021-04-20 15:36:11 +02:00
Raphaël Vinot 67457bec53 chg: Fix test suite. 2021-04-20 00:25:47 +02:00
Raphaël Vinot a2d7cbd763 fix: Make reportlab tests optional if missing dep. 2021-03-15 13:50:48 +01:00
Raphaël Vinot a0bda8736a chg: Add test case, fix mypy 2021-03-05 12:11:00 +01:00
Raphaël Vinot ef9efce5c3 fix: Typo in tests 2021-03-03 10:04:15 +01:00
Raphaël Vinot 8137389452 chg: Bump tests for galaxy cluster 2021-03-02 11:49:31 +01:00
Raphaël Vinot 2e05a1b24f new: soft delete object in MISPEvent
Fix #706
2021-02-27 14:53:15 +01:00
Raphaël Vinot 28fed5c778 fix: support text search again
Fix #705
2021-02-27 14:53:15 +01:00
Tom King ea86dd0d57 fix: Fix mispevent edit test by including default and distribution keys on a GalaxyCluster 2021-02-27 12:35:24 +00:00
Tom King a94b81ae72 Merge remote-tracking branch 'upstream/main' into feature/misp-galaxy-2 2021-02-08 11:50:38 +00:00
Raphaël Vinot 0a051286ff chg: Bump template ID in test case 2021-02-02 11:49:20 +01:00
Tom King 7d4cfc40b7 chg: Add in nosetests for MISP Galaxy functions, check default key as a dict attribute not MISPAbstract attribute 2021-01-30 15:34:29 +00:00
Raphaël Vinot 35ae9e00dd fix: Update testlive accordingly 2021-01-28 15:01:54 +01:00
Raphaël Vinot 86a5d3acc7 new: hard delete flag for objects
Related: https://github.com/MISP/PyMISP/issues/666
2021-01-28 14:45:36 +01:00
Raphaël Vinot 109e56928e chg: Add test case fir add_attribute and enforceWarninglist=True 2021-01-28 14:45:36 +01:00
Raphaël Vinot 670c145a79 chg: Add testcase with breakOnDuplicate in a MISPObject 2021-01-28 14:45:36 +01:00
Raphaël Vinot ae8b34f12f chg: add test case for page/limit in logs search 2021-01-28 14:45:36 +01:00
Raphaël Vinot e916b332f8 new: Fail if a duplicate object is added to an event. 2021-01-28 14:45:36 +01:00
Raphaël Vinot 8c09a5bbc9 chg: Use lief 0.11.0, generate authenticode entries 2021-01-28 14:45:36 +01:00
Tom King 07f00a68f1 chg: Allow response of delete to be pythonify, add in nosetest 2021-01-15 15:26:41 +00:00
seamus tuohy 5261d13c9f Noticed that test data mail_5.msg was malformatted. Replaced with working test msg. 2020-12-28 15:22:03 -05:00
seamus tuohy 87c02da0d7 Updated emailobject.
Email object no longer requires extra php libraries for install.
Tests have been expanded to improve coverage.
RTF encapsulated HTML and Plain Text will now be de-encapsulated.
The raw MSG binary will now be included in the extracted email object.
2020-12-28 13:47:21 -05:00
Alexandre Dulaunoy d7a000c2c3
chg: [test] file object template are now 24 2020-12-24 13:09:24 +01:00
Alexandre Dulaunoy 0c84e9a4d5
chg: [test] file object template is now at version 24 2020-12-24 12:09:21 +01:00
Raphaël Vinot 0d86a4339f new: Allow to pass an object template to MISPObject.__init__
MISPObject part of #6670
2020-12-01 14:01:32 +01:00
Raphaël Vinot fe91e10ced chg: on-demand decryption of malware-binary, speeds up pythonify. 2020-11-26 13:31:10 +01:00
Raphaël Vinot ded44278af fix: Add attribute dict as proposal 2020-11-24 20:03:01 +01:00
Raphaël Vinot 35860b49bd chg: Improve add_attribute with a list
Related: #655
2020-11-24 13:50:14 +01:00
Raphaël Vinot 600d802576 chg: Improve error message if a type in missing 2020-11-24 12:22:25 +01:00
Raphaël Vinot e317b089b8 chg: Add search info field with "\"
Related: https://github.com/MISP/MISP/issues/6616
2020-11-19 14:54:52 +01:00
Raphaël Vinot ac9b117f36
Merge pull request #631 from JakubOnderka/emailobject-tool-upgrade
Emailobject tool upgrade
2020-11-19 10:46:42 +01:00
Raphaël Vinot 4e830a435b fix: Test suite for exists calls 2020-11-17 00:04:18 +01:00
Raphaël Vinot c5f8c653c4 chg: Force enable debug in test, test update tags 2020-11-16 13:39:07 +01:00
Raphaël Vinot b646f0c5da
Merge pull request #651 from JakubOnderka/new-api
New API
2020-11-09 10:53:34 +01:00
Jakub Onderka 6c1f476bdd new: Method to check attribute and object existence 2020-11-07 10:17:16 +01:00
Raphaël Vinot 0d67babea2 fix: last_seen has to be after first_seen, and it should habe been failing before. 2020-11-06 11:17:46 +01:00
Raphaël Vinot 70de680912 chg: Use REST search for the tags
Related to comments on a1326f2cf2
2020-11-05 16:51:58 +01:00
Jakub Onderka 5e4dd2b974 new: Allow to get just event metadata after add_event and edit_event 2020-11-03 12:10:38 +01:00
Jakub Onderka 495af1fd9c new: Method to check event existence 2020-11-03 12:10:37 +01:00
Raphaël Vinot a1326f2cf2 new: Add method to search for tags.
fix #648
2020-11-02 12:47:56 +01:00