test: prove that authenticator is not a superuser
This commit is contained in:
committed by
Steve Chavez
parent
b0e395f495
commit
67936b343f
@@ -0,0 +1,20 @@
|
||||
module Feature.NoSuperuserSpec where
|
||||
|
||||
import Network.Wai (Application)
|
||||
|
||||
import Network.HTTP.Types
|
||||
import Test.Hspec
|
||||
import Test.Hspec.Wai
|
||||
|
||||
import Protolude
|
||||
|
||||
spec :: SpecWith ((), Application)
|
||||
spec =
|
||||
describe "No Superuser" $ do
|
||||
it "proves that the authenticator role is not a superuser" $ do
|
||||
request methodGet "/rpc/is_superuser"
|
||||
mempty
|
||||
""
|
||||
`shouldRespondWith`
|
||||
"false"
|
||||
{ matchStatus = 200 }
|
||||
Reference in New Issue
Block a user