Commit Graph

474 Commits (a4a6077c5ae1d7f2f7ee3a1432785ee76eb004ac)

Author SHA1 Message Date
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
Jakub Onderka 9fd3d8a3e3 fix: [emailobject] Correctly parse multiple addresses 2020-10-24 17:24:18 +02:00
Jakub Onderka 055ef16e41 new: Test parsing just email header 2020-10-24 17:24:18 +02:00
Jakub Onderka 5e0ad0a47f new: Test parsing outlook message format 2020-10-24 17:24:18 +02:00
Jakub Onderka 7f0229b3f1 new: Add tests for EmailObject 2020-10-24 17:24:17 +02:00
Raphaël Vinot d428858f1e fix: Do now fail on requests returning plain text
Fix #639
2020-10-21 15:16:17 +02:00
Raphaël Vinot 1005a0fa5c chg: Bump test cases 2020-10-16 13:09:02 +02:00
Raphaël Vinot 9a5aeede19 chg: Bump file obj version in tests 2020-10-14 00:11:49 +02:00
Raphaël Vinot bdd8fe6782 chg: Add test for delete=True in get_event 2020-09-29 11:10:39 +02:00
Raphaël Vinot 2e2cdbeb7e fix: Test on macosx
Fix #630
2020-09-16 12:07:58 +02:00
Raphaël Vinot 50e5f156bd chg: Improve error message, add comments, rename whitelist->allowedlist 2020-09-15 12:31:22 +02:00
Raphaël Vinot f1a91d0872 chg: Bump file template version 2020-09-02 15:34:45 +02:00
Raphaël Vinot 9f6f95be0e new: [test] Validate tag removal 2020-09-02 15:11:18 +02:00
Raphaël Vinot 918f841087 chg: Rename blacklist -> blocklist 2020-09-01 19:29:12 +02:00
Raphaël Vinot 53f9979b48 fix: Bump file template version 2020-08-20 12:52:08 +02:00
Raphaël Vinot 821a4f5398 Merge branch 'main' of github.com:MISP/PyMISP into main 2020-08-04 12:21:19 +02:00
Raphaël Vinot be8c94e6e7 chg: Cleanup blocklist methods 2020-08-04 12:20:21 +02:00
Raphaël Vinot 2bbf888ca7 new: Blacklist methods 2020-08-03 15:59:54 +02:00
Raphaël Vinot 83273b6ce8 new: Add list of missing calls 2020-07-30 16:48:37 +02:00
mokaddem fd91bcb44e chg: [testlive_comprehensive] Updated generic tagging method to match
changes in MISP
2020-07-28 15:23:58 +02:00
Jakub Onderka 82aa3c815d
fix: test_get_non_exists_event 2020-07-28 12:26:15 +02:00
Raphaël Vinot c566892944 Merge branch 'main' of github.com:MISP/PyMISP into main 2020-07-28 11:27:52 +02:00
Raphaël Vinot ba4b22a303 fix: IP removed from the public DNS list 2020-07-28 11:27:26 +02:00
Jakub Onderka b10faa653f chg: New test_get_non_exists_event 2020-07-27 13:39:43 +02:00
Raphaël Vinot 2fb61d4b32 chg: Enable more tests. 2020-07-24 12:49:53 +02:00
Raphaël Vinot b2e8cffd0b fix: Add STIX XML output for the search
Use stix-xml as return_format.

Fix #600 https://github.com/MISP/MISP/issues/5618
2020-07-17 14:19:15 +02:00
louis 6429ffd795 new: Add test_obj_references_export 2020-07-01 13:20:49 +02:00
Raphaël Vinot a127318a8e chg: Add a few test cases 2020-06-22 14:27:03 +02:00
Raphaël Vinot daf937a100 chg: Add test case for get event deleted 2020-06-19 13:38:11 +02:00
Raphaël Vinot c2e643c01b chg: Add test case for search deleted 2020-06-19 11:49:38 +02:00
Troy Ross 17ebfe86ab Previously file object was reporting the libmagic description of a file
instead of the mimetype. According to [MISP DataModels](https://www.misp-project.org/datamodels/#types)
```
mime-type: A media type (also MIME type and content type) is a two-part identifier for file formats and format contents transmitted on the Internet
```
more precisely defined in [RFC2045](https://tools.ietf.org/html/rfc2045) and others.

The description returned by libmagic is more useful than the generic mime-type,
but I did not find a place to put the description in the current data model.
2020-06-14 10:48:29 -06:00
Raphaël Vinot 5d97d7ee0c new: Add helper and test case for GitVulnFinderObject 2020-05-26 15:37:24 +02:00
Raphaël Vinot d7beed9f76 new: Test search with timestamp 2020-05-14 22:47:24 +02:00
Raphaël Vinot 14e3ecdfdc chg: Add test for feed partial update 2020-05-14 15:55:18 +02:00
Raphaël Vinot f1494125ae new: Add testcase for updating partial event 2020-05-14 12:45:04 +02:00
Raphaël Vinot 14d278fff2 fix: Properly load feeds, fix undefined variable 2020-05-12 11:24:47 +02:00
Raphaël Vinot c098981a40 new: Very simple test case for rest search on objects 2020-05-07 13:59:45 +02:00
Raphaël Vinot 4a060b3c07 new: Self registration, object level search (initial) 2020-05-07 12:17:31 +02:00
Raphaël Vinot 8980c2da3b fix: Typo, add test for extended event 2020-05-04 10:19:55 +02:00
VVX7 b08cf8b6a6 chg: [dev] remove duplicate line 2020-05-03 21:22:38 -04:00
VVX7 a76a85b616 chg: [dev] add extend_event() test. chg typo in get_event() 2020-05-03 20:58:33 -04:00
Raphaël Vinot 0faa75824f fix: Enable autoalert on admin user 2020-04-27 12:21:30 +02:00
Raphaël Vinot 4d7ed41602 fix: Properly handle timezone in tests 2020-04-10 14:54:47 +02:00
Raphaël Vinot b5b40ae2c5 fix: Strip every string in AbstractMISP
fix #546
2020-03-24 14:34:29 +01:00
Raphaël Vinot 8d294ff2ba fix: Test cases & template version 2020-02-26 14:53:08 +01:00
Raphaël Vinot 94c2a644af fix: do not skip data in add_attribute methods 2020-02-24 14:13:10 +01:00
Raphaël Vinot 35377399e8 new: Add uuid by default in MISPEvent, add F/L seen in feed output. 2020-02-21 14:12:36 +01:00
mokaddem 52774769ac fix: [*-seen] Consider that `-` can also be in the date component while
parsing
2020-01-31 12:26:50 +01:00
Raphaël Vinot db9c54bb08 fix: first seen was after last seen, trigerring the exception 2020-01-29 11:19:10 +01:00
Raphaël Vinot 7e29d41976 fix: Tests failing if local tz was not CET 2020-01-28 16:30:58 +01:00
Raphaël Vinot a8ff8f88fe chg: Test update last seen 2020-01-28 16:01:14 +01:00
Raphaël Vinot 21fa4af863 chg: Add test cases in feed 2020-01-28 14:41:28 +01:00
Raphaël Vinot d40b0a46bc chg: Add test cases 2020-01-28 14:25:10 +01:00
Raphaël Vinot 32445973bd new: Support for first_seen/last_seen
Cleaner import of datetime
2020-01-27 19:07:52 +01:00
Raphaël Vinot b0e95fd5af chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
Raphaël Vinot acaf56b888 fix: Bump template_version in test cases 2020-01-17 15:20:56 +01:00
Raphaël Vinot d95aaf8c64 chg: Bump dependencies, add debug 2020-01-17 11:34:40 +01:00
Raphaël Vinot 3ee7d8c676 chg: Search with the STIX output returns a json STIX
Was XML before.
2020-01-07 15:30:23 +01:00
Raphaël Vinot 24a8f90ea8 new: Remove python < 3.6 support. 2019-12-18 14:45:14 +01:00
Raphaël Vinot a26a8e450b chg: Bump test files 2019-12-16 15:30:44 +01:00
Raphaël Vinot 30a940c7f1 fix: Properly test custom objects 2019-12-16 15:24:04 +01:00
Raphaël Vinot 826fc21ace chg: Debug travis error message 2019-12-16 13:50:29 +01:00
Raphaël Vinot 637a9668c0 fix: Adding a sighting takes a little bit of time. 2019-12-12 11:47:03 +01:00
Raphaël Vinot 24594a5aea fix: Test case on reference 2019-12-11 23:38:41 +01:00
Raphaël Vinot 0d354b2032 fix: Update tests. 2019-11-29 16:33:17 +01:00
Raphaël Vinot ca5e39e544 fix: Bump url template version in test cases 2019-11-19 12:39:14 +01:00
Raphaël Vinot 1f2b5f1329 fix: Python 2.7 tests 2019-11-15 14:30:39 +01:00
Raphaël Vinot 8163f8dd1d new: Validate object templates
fix https://github.com/MISP/misp-objects/issues/199
2019-11-15 13:33:09 +01:00
Raphaël Vinot c5dfa9b509 new: Test cases for restricted tags
Fix #483
2019-11-11 16:39:20 +01:00
Raphaël Vinot 8c2bbaa13c new: Get Database Schema Diagnostic
Fix #492
2019-11-11 14:28:17 +01:00
Alexandre Dulaunoy 204fd6ba8c
chg: [test] feed test updated as botvrij is now TLS by default 2019-11-05 10:52:34 +01:00
Raphaël Vinot 880fb300ea chg: Use default category from template
Fix #477
2019-10-18 14:44:57 +02:00
Raphaël Vinot 21c16c8c75 chg: Skip usersettings tests when emails are disabled 2019-10-17 12:42:59 +02:00
Raphaël Vinot c509b22beb new: Add support for UserSettings 2019-10-16 17:22:19 +02:00
Raphaël Vinot c80d35fa75 Merge branch 'perf' 2019-10-10 11:20:25 +02:00
Raphaël Vinot 2785d0027d fix: [Python2] Use LRU cache decorator, fix call to describe_types in PyMISP 2019-10-10 10:15:23 +02:00
Raphaël Vinot 02659a5782 chg: Add support for rapidjson, refactoring and code cleanup. 2019-10-09 16:07:40 +02:00
Raphaël Vinot f312f87072 fix: Objects helpers were broken, do not overwrite describe_types 2019-10-08 09:28:33 +02:00
Marc Hoersken 5cfe7e6b59 Add viper-test-files repository as Git submodule 2019-10-04 09:00:01 +02:00
Alexandre Dulaunoy b67cec60a3
chg: [test] remove attribute field which was not foreseen in 2.4 branch
Signed-off: by the Hungarian leader
2019-09-16 15:06:05 +02:00
Raphaël Vinot 605cdc21ef chg: Fix travis tests due to sighting_timestamp 2019-09-16 13:10:14 +02:00
Raphaël Vinot 7324ae72e6 new: Better handling of delete(d) attributes
* Hard delete on attribute
* Get the deleted attributes within an event
2019-09-13 16:12:45 +02:00
Raphaël Vinot b800dcb4b4 chg: Dump dependencies, update tests 2019-09-11 14:20:55 +02:00
Raphaël Vinot daca32db36 fix: Event delegation was incorrect 2019-08-30 14:19:52 +02:00
Raphaël Vinot 5037810c4c chg: Temp disable tests for request_community_access 2019-08-30 12:15:39 +02:00
Raphaël Vinot 681c06cdd2 chg: Disable test for now 2019-08-30 12:03:52 +02:00
Raphaël Vinot 7bf6005576 new: [Community] Request access 2019-08-30 11:45:56 +02:00
Raphaël Vinot 7402e1b3b6 new: Initial support for communities 2019-08-29 18:08:53 +02:00
Raphaël Vinot a5d4910c1f new: Contact event reporter 2019-08-28 16:02:26 +02:00
Raphaël Vinot cebdc2ef3f fix: Automatically skip empty string in add_attribute at object level
Fix #439

Re-enable test cases.
2019-08-28 14:46:02 +02:00
Raphaël Vinot f133cb9477 chg: Re-enable a few test cases 2019-08-27 10:43:58 +02:00
Raphaël Vinot b802e202e2 chg: Make sure delegation is enabled while testing 2019-08-26 20:34:27 +02:00
Raphaël Vinot bfd57e7741 chg: [tests] Check the type of the response 2019-08-26 20:18:12 +02:00
Raphaël Vinot 1f74a943e6 chg: New local key in Org/Orgc 2019-08-26 19:40:14 +02:00
Raphaël Vinot 0b7314c474 new: Delegate Event
And more test cases
2019-08-26 16:24:48 +02:00
Raphaël Vinot 101ec5f9ed chg: [tests] Do not run in fast mode by default. 2019-08-20 15:59:41 +02:00
Raphaël Vinot e95948bcf6 chg: Better handling of sightings. 2019-08-20 15:34:21 +02:00
Raphaël Vinot eba8b6df24 fix: [Travis] User cannot create tag, Travis was right. 2019-08-19 12:31:05 +02:00
Raphaël Vinot 7a2fdd7d24 chg: [Travis] Add more debug 2019-08-19 12:11:54 +02:00
Raphaël Vinot b897dcf19c fix: Invalid tests in last commit. 2019-08-19 11:58:37 +02:00
Raphaël Vinot 2841d56131 fix: [Travis] Slight changes to help debug on Travis. 2019-08-19 11:48:41 +02:00
Raphaël Vinot 4995ff731d chg: Add test related to travis 2019-08-19 11:30:53 +02:00
Raphaël Vinot f384d74049 chg: Improve test cases 2019-08-16 11:28:07 +02:00
Raphaël Vinot 2e84dd69fc chg: Update and improve live testing 2019-08-16 10:48:06 +02:00
Raphaël Vinot 2d37c68bd7 chg: Add tests cases for sync, bump describeTypes 2019-08-12 14:12:40 +02:00
Raphaël Vinot 96576af02b new: Helpers & testcases for syncing 2019-08-09 17:58:55 +02:00
Raphaël Vinot 783b84899d new: Preliminaty setup for testing syncing 2019-08-07 18:22:28 +02:00
Raphaël Vinot 0cedf960e9 new: Add few tests for admin tasks 2019-08-07 18:21:46 +02:00
Raphaël Vinot a3140f3773 new: Properly support attribute/add of multiple attributes (2.4.113+) 2019-08-06 16:50:09 +02:00
Raphaël Vinot e993886dd7 fix: Exception when posting multiple attributes on attributes/add
Fix #433

Few cleanups in code.
2019-08-06 14:14:28 +02:00
Raphaël Vinot 549e3a5a84 chg: Enable more tests 2019-08-05 16:53:32 +02:00
Raphaël Vinot 9b7d547f14 chg: #4891 was fixed. 2019-08-05 15:59:24 +02:00
Raphaël Vinot d160edce57 fix: Inconsistency in MISPEvent, reenable tests 2019-08-03 00:54:08 +02:00
Raphaël Vinot 1a0688ef6f fix: Some test cases need more love. 2019-08-02 18:01:08 +02:00
Raphaël Vinot 66ccc7d082 new: [Search] Add a few new options in rest search 2019-08-02 17:08:25 +02:00
Raphaël Vinot b1c79f939b chg: [tests] Few improvements 2019-08-01 15:10:48 +02:00
Raphaël Vinot 1b85f73d89 chg: [tests] Add new test cases 2019-08-01 13:19:21 +02:00
Raphaël Vinot 0957399799 new: Allow to change the template on an object on-the-fly
Related: #425
2019-07-25 14:53:30 +02:00
Raphaël Vinot a6a0fcd4fb chg: Make pythonify=False default everywhere
Add a method to toggle pythonify globally
2019-07-22 11:28:31 +02:00
Raphaël Vinot 31499bdc7e fix: [tests] Disable one of the test cases for now. 2019-07-21 02:26:24 +02:00