sckg icon indicating copy to clipboard operation
sckg copied to clipboard

CIS CSC unittest fails

Open jason-callaway opened this issue 4 years ago • 1 comments

======================================================================
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 avatar Feb 27 '20 20:02 jason-callaway

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

jason-callaway avatar Apr 29 '20 19:04 jason-callaway