diff --git a/docs/content/en/integrations/parsers/file/clair.md b/docs/content/en/integrations/parsers/file/clair.md index 235f801ee94..7c7ac5baefc 100644 --- a/docs/content/en/integrations/parsers/file/clair.md +++ b/docs/content/en/integrations/parsers/file/clair.md @@ -2,7 +2,7 @@ title: "Clair Scan" toc_hide: true --- -Import JSON reports of Docker image vulnerabilities. +You can import JSON reports of Docker image vulnerabilities found by a Clair scan or the Clair Klar client. ### Sample Scan Data Sample Clair Scan scans can be found [here](https://github.com/DefectDojo/django-DefectDojo/tree/master/unittests/scans/clair). \ No newline at end of file diff --git a/docs/content/en/integrations/parsers/file/clair_klar.md b/docs/content/en/integrations/parsers/file/clair_klar.md deleted file mode 100644 index 05651bf267c..00000000000 --- a/docs/content/en/integrations/parsers/file/clair_klar.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "Clair Klar Scan" -toc_hide: true ---- -Import JSON reports of Docker image vulnerabilities from clair klar -client. - -### Sample Scan Data -Sample Clair Klar Scan scans can be found [here](https://github.com/DefectDojo/django-DefectDojo/tree/master/unittests/scans/clair_klar). \ No newline at end of file diff --git a/unittests/test_parsers.py b/unittests/test_parsers.py index 9832b7f2b3e..ac2b75730c0 100644 --- a/unittests/test_parsers.py +++ b/unittests/test_parsers.py @@ -93,3 +93,15 @@ def test_file_existence(self): if ".read()" in str(line): read_true = True i = 0 + + def test_parser_existence(self): + for docs in os.scandir(os.path.join(basedir, 'docs', 'content', 'en', 'integrations', 'parsers', 'file')): + if docs.name not in [ + '_index.md', 'codeql.md', 'edgescan.md' + ]: + with self.subTest(parser=docs.name.split('.md')[0], category='parser'): + parser = os.path.join(basedir, 'dojo', 'tools', f"{docs.name.split('.md')[0]}", "parser.py") + self.assertTrue( + os.path.isfile(parser), + f"Parser '{parser}' is missing or using different name" + )