redteam-project / sckg

Security Control Knowledge Graph
GNU General Public License v3.0
39 stars 16 forks source link

CIS CSC unittest fails #17

Open jason-callaway opened 4 years ago

jason-callaway commented 4 years ago
======================================================================
FAIL: test_control_count_cis_csc (test_regime_etl.TestConfigYaml)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jasoncallaway/PycharmProjects/sckg/tests/test_regime_etl.py", line 90, in test_control_count_cis_csc
    self.assertEquals(r[0], r[1])
AssertionError: 191 != 171

----------------------------------------------------------------------
jason-callaway commented 4 years ago

This is better after fixing the CNSSI 1253 PII source TSV to include spaces in the 800-53 control names. But the test case is still failing. Still, getting closer.

match (r:regime {name: 'CNSSI 1253'})-[:HAS]->(b:baseline {name: 'Privacy'}) with r, b match (b)-[:REQUIRES]->(c:control) return count(distinct(c.name))
╒═════════════════════════╕
│"count(distinct(c.name))"│
╞═════════════════════════╡
│196                      │
└─────────────────────────┘

Vs.

$ cat cnssi_1253_privacy.tsv | wc -l
     232