os-threat / Stix-ORM

GNU Affero General Public License v3.0
4 stars 0 forks source link

Check add sub conditions (1. already exists, 2. cyclical, missing dependency) and document #6

Open brettforbes opened 1 year ago

brettforbes commented 1 year ago

The add method currently has 4 sub conditions that need to be checked:

  1. Already Exists: If the object already exists, then the add cycle should continue, and some message be printed (?)
  2. Cyclical: If the cyclical condition is detected, the two objects should be separated, the indep_ql conponent loaded, then the dep_match and dep_ql loaded. The two test examples of network cyclical are in the directory data/standard/issues directory
  3. Missing Dependency: If the object list has a missing dependency, then the source should be checked first to see if they are there. If not, then a clear error message should be printed explaining what is wrong
  4. Problem with any of the above, or any other problem

These scenarios should be documented in the usage directory