saml2-web-sso-0.20: Library and example web app for the SAML Web-based SSO profile.
Safe HaskellSafe-Inferred
LanguageHaskell2010

SAML2.WebSSO.Test.Arbitrary

Synopsis

Documentation

genHttps' :: Maybe (Range Int) -> Gen URI Source #

arbitrary URIRef with restricted length.

uri-bytestring has Arbitrary instances, but they are likely to remain internal. also we're not sure what restrictions we'll need to impose on those in roder to get the URIs of the shape required here. https://github.com/Soostone/uri-bytestring/issues/45

genNiceText :: Range Int -> Gen ST Source #

pick N words from a dictionary of popular estonian first names. this should yield enough entropy, but is much nicer to read.

(quickcheck has something like this as well.)

genTime :: Gen Time Source #

(we only allow full microseconds, since someone, somewhere does the rounding for us in the tests if we don't do it here, which makes the affected tests fail.)

genResponse :: forall payload. Gen payload -> Gen (Response payload) Source #

genSimpleSetCookie :: forall (name :: Symbol). KnownSymbol name => Gen (SimpleSetCookie name) Source #

shallowShrinkList :: Eq a => [a] -> [[a]] Source #

seconds :: Lens' UTCTime Pico Source #

Lens into the second value of a Timeable.

Warning: this is not a proper lens for UTCTime: it only obeys the lens laws if used with valid values.

Orphan instances

Arbitrary SignedCertificate Source # 
Instance details

Arbitrary Config Source # 
Instance details

Arbitrary Assertion Source # 
Instance details

Arbitrary AuthnRequest Source # 
Instance details

Arbitrary Conditions Source # 
Instance details

Arbitrary Duration Source # 
Instance details

Arbitrary IdPId Source # 
Instance details

Arbitrary IdPMetadata Source # 
Instance details

Arbitrary Issuer Source # 
Instance details

Arbitrary Locality Source # 
Instance details

Arbitrary NameID Source # 
Instance details

Arbitrary SubjectConfirmationData Source # 
Instance details

Arbitrary SubjectConfirmationMethod Source # 
Instance details

Arbitrary Time Source # 
Instance details

Arbitrary UnqualifiedNameID Source # 
Instance details

Arbitrary UserRef Source # 
Instance details

Arbitrary URI Source # 
Instance details

Arbitrary Document Source # 
Instance details

Arbitrary Node Source # 
Instance details

Arbitrary Name Source # 
Instance details

Arbitrary a => Arbitrary (FormRedirect a) Source # 
Instance details

Arbitrary a => Arbitrary (IdPConfig a) Source # 
Instance details

Arbitrary payload => Arbitrary (Response payload) Source # 
Instance details

Methods

arbitrary :: Gen (Response payload) Source #

shrink :: Response payload -> [Response payload] Source #

Arbitrary (MultipartData Mem) Source # 
Instance details