Skip to content

Commit

Permalink
Merge pull request #68 from splunk/fail_manual_check
Browse files Browse the repository at this point in the history
WIP: testing appinspect on CI for report creation
  • Loading branch information
pyth0n1c authored Oct 24, 2023
2 parents e63ed1f + 8c7bc04 commit 597bdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contentctl/output/conf_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ def inspectAppAPI(self, username:str, password:str)->None:


self.parseAppinspectJsonLogFile(self.dist/f"{self.config.build.title}-{self.config.build.version}.appinspect_api_results.json")

return None

def parseAppinspectJsonLogFile(self, logfile_path:pathlib.Path,
status_types:list[str] = ["error", "failure", "manual_check", "warning"],
exception_types = ["error","failure"] )->None:
exception_types = ["error","failure","manual_check"] )->None:
if not set(exception_types).issubset(set(status_types)):
raise Exception(f"Error - exception_types {exception_types} MUST be a subset of status_types {status_types}, but it is not")
with open(logfile_path, "r+") as logfile:
Expand Down

0 comments on commit 597bdb8

Please sign in to comment.