Safe Haskell | None |
---|---|
Language | GHC2021 |
SAML2.WebSSO.Test.Util.Misc
Contents
Synopsis
- hedgehog :: IO Bool -> Spec
- readSampleIO :: MonadIO m => FilePath -> m LT
- readSampleIOLBS :: MonadIO m => FilePath -> m LBS
- doesSampleExistIO :: MonadIO m => FilePath -> m Bool
- roundtrip :: (Eq a, Show a, HasXMLRoot a) => Int -> IO LT -> a -> Spec
- assertXmlRoundtrip :: HasCallStack => Either String Document -> Either String Document -> Expectation
- assertXmlRoundtripFailWithDiff :: HasCallStack => Document -> Document -> Expectation
- normalizeDocument :: HasCallStack => Document -> Document
- renderAndParse :: HasCallStack => Document -> Document
- isSignature :: Node -> Bool
- newtype SomeSAMLRequest = SomeSAMLRequest {}
- base64ours :: HasCallStack => SBS -> IO SBS
- base64theirs :: HasCallStack => SBS -> IO SBS
Documentation
assertXmlRoundtrip :: HasCallStack => Either String Document -> Either String Document -> Expectation Source #
If we get two XML structures that differ, compute the diff.
normalizeDocument :: HasCallStack => Document -> Document Source #
Make two Document
values that are supposed to be equal easier to compare:
- render and parse back to normalize the locations where namespaces are declared
- sort all children and remove digital signatures
- remove all namespace prefices
renderAndParse :: HasCallStack => Document -> Document Source #
isSignature :: Node -> Bool Source #
newtype SomeSAMLRequest Source #
Constructors
SomeSAMLRequest | |
Fields |
Instances
Show SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc Methods showsPrec :: Int -> SomeSAMLRequest -> ShowS # show :: SomeSAMLRequest -> String # showList :: [SomeSAMLRequest] -> ShowS # | |
Eq SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc Methods (==) :: SomeSAMLRequest -> SomeSAMLRequest -> Bool # (/=) :: SomeSAMLRequest -> SomeSAMLRequest -> Bool # | |
HasFormRedirect SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc Methods | |
HasXML SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc Methods nameSpaces :: Proxy SomeSAMLRequest -> [(ST, ST)] Source # render :: SomeSAMLRequest -> [Node] Source # parse :: MonadError String m => [Node] -> m SomeSAMLRequest Source # | |
HasXMLRoot SomeSAMLRequest Source # | |
Defined in SAML2.WebSSO.Test.Util.Misc Methods renderRoot :: SomeSAMLRequest -> Element Source # |
base64ours :: HasCallStack => SBS -> IO SBS Source #
base64theirs :: HasCallStack => SBS -> IO SBS Source #