sckg
sckg copied to clipboard
CIS CSC unittest fails
======================================================================
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
----------------------------------------------------------------------
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