Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
test: honorToken should handle critical priority
Browse files Browse the repository at this point in the history
  • Loading branch information
panchoh committed May 26, 2020
1 parent 60b2412 commit 02d6e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Text/UbuntuSecurityTracker/CVE/ValidatorImplSpec.hs
Original file line number Diff line number Diff line change
@@ -54,6 +54,9 @@ spec = do
it "should fill the priority field with the `Priority` Metadata (high)" $
do honorToken emptyCVE (Metadata "Priority" "high")
`shouldBe` Right emptyCVE {priority = Just H}
it "should fill the priority field with the `Priority` Metadata (critical)" $
do honorToken emptyCVE (Metadata "Priority" "critical")
`shouldBe` Right emptyCVE {priority = Just H}
it "should fill the priority field with the `Priority` Metadata (untriaged)" $
do honorToken emptyCVE (Metadata "Priority" "untriaged")
`shouldBe` Right emptyCVE {priority = Nothing}

0 comments on commit 02d6e67

Please sign in to comment.