-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add End to End Unit Testing for JSON De/Serialization (#79)
* update names of mock methods * fix naming of json annotations for proper updates * Updates to support proper sequence generation * add printing of object and json outputs for manual review and update test description * adds support for IdentitySDO * add identity SDO testing support * Add random label generator * Add support for Campaign SDO * remove tabs * Add course of action, intrusion set tests + fixes to related SDOs + cleanup * add Malware, ObservedData + Artifact + Fix for hashes pluralization * remove old imports * Fix misnamed method * Add Autonomous System COO * Add DirectoryCOO * Add Domain Name COO * Add Email Address COO * removing inner Set<String> from headers to conform to spec, even though its a issue The spec dictates this is a "Dictionary" field. But a dictionary cannot have duplicate fields. oasis-tcs/cti-stix2#138 * Add Email Message COO + MimePartType which is used in email message * Fix bad business rule for email message * add comment * fix bad naming of jsonpropertydescription * Add dupluralizeDictionary values for better method naming * reorder methods to match the ordering in the spec * Add support for File Coo * Cleanup on COO Extension serializer and deserializer for better output * Remove unneeded Annotations as the MimePartType only exists as a sub object and has not "typing" * Add Valid annotation to getBodyMultipart so the MimePartTypeObj is validated against the EmailMessage validation * cleanup + fix file coo issues * add missing GenericValdiation extends on COO inner types * Remove valid anotation as it will be handled by the GenericValidation interface of MimePartTypeObj * convert list mocking to use fromStrings() method provided by mockneat * remove old code for better Mimes dictionary * adjust default range for sector generation in identites * change custom props to generate with prepend * fix regression with threat actor sdo * Add IVP4 COO supporte * Add IPV6 COO support * Add Mac Address COO + MacAddress generation support on IVP4 and IPV6 COO * fix types * Add Mutex and NetworkTraffic COO * Fix type in method name * Add Process COO support * Remove regex until better working pattern can be created * Add Software COO * Add URL coo * fix vocab placement * Add UserAccount COO and cleanup * Add user account coo to Observed Object generator * fix vocab annotation placement * cleanup todo * Add Windows Registry Key Coo support * Fix network traffic annotations for range * fix regex pattern annotaiton placement * Cleanup to fix bugs * Cleanup + Add depluralize dictionary support * Add X509 cert COO support * Add TheatActor, Report, Tool, Vulnerability SDO support plus cleanup * Add alias/aliases dictionary for depluralization of methods * Fix annotation for vocab on labels * Fix business rule that was using incorrect methods (isEmpty vs isPresent) * Add jsonassert * Update attack pattern with use of objectmapper and json assert * Update for using ObjectMapper for serialization/deserialization within specs * cleanup imports * remove unneeded imports from groovy.json * Remove unneeded Style annotation * Add custom properties support onto the Bundle object * Add mock bundle support * Remove old tests that are not needed * remove old json files from tests * refactor and add readme context for test resources * refactor mockDatagenerator groovy trait location * Add custom props support to Marking Objects and Granular Marking Objects * fix javadoc * Add Granular Marking, Object Marking, Statement and TLP support + updated all SDOs with CreatedByRef + Updated Report and Bundle to generate Object Markings * remove markovs are they are way too slow! * rename method for clearner usage * Add Markings Definition support + JsontypeName support for TLP and Statement Markings * refactor vocabularies into clearner packages * update deps and add missing imports for refactor of vocabs packages * Add Relationship and Sighting SROs support. Added to Bundle and Report + Add individual Spec tests
- Loading branch information
1 parent
d9c98ec
commit 8f7a602
Showing
110 changed files
with
3,230 additions
and
977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.