{-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Test.AWS.Gen.STS -- Copyright : (c) 2013-2015 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Test.AWS.Gen.STS where import Data.Proxy import Test.AWS.Fixture import Test.AWS.Prelude import Test.Tasty import Network.AWS.STS import Test.AWS.STS.Internal -- Auto-generated: the actual test selection needs to be manually placed into -- the top-level so that real test data can be incrementally added. -- -- This commented snippet is what the entire set should look like: -- fixtures :: TestTree -- fixtures = -- [ testGroup "request" -- [ testAssumeRole $ -- assumeRole -- -- , testDecodeAuthorizationMessage $ -- decodeAuthorizationMessage -- -- , testAssumeRoleWithWebIdentity $ -- assumeRoleWithWebIdentity -- -- , testGetFederationToken $ -- getFederationToken -- -- , testGetSessionToken $ -- getSessionToken -- -- , testAssumeRoleWithSAML $ -- assumeRoleWithSAML -- -- ] -- , testGroup "response" -- [ testAssumeRoleResponse $ -- assumeRoleResponse -- -- , testDecodeAuthorizationMessageResponse $ -- decodeAuthorizationMessageResponse -- -- , testAssumeRoleWithWebIdentityResponse $ -- assumeRoleWithWebIdentityResponse -- -- , testGetFederationTokenResponse $ -- getFederationTokenResponse -- -- , testGetSessionTokenResponse $ -- getSessionTokenResponse -- -- , testAssumeRoleWithSAMLResponse $ -- assumeRoleWithSAMLResponse -- -- ] -- ] -- Requests testAssumeRole :: AssumeRole -> TestTree testAssumeRole = req "AssumeRole" "fixture/AssumeRole.yaml" testDecodeAuthorizationMessage :: DecodeAuthorizationMessage -> TestTree testDecodeAuthorizationMessage = req "DecodeAuthorizationMessage" "fixture/DecodeAuthorizationMessage.yaml" testAssumeRoleWithWebIdentity :: AssumeRoleWithWebIdentity -> TestTree testAssumeRoleWithWebIdentity = req "AssumeRoleWithWebIdentity" "fixture/AssumeRoleWithWebIdentity.yaml" testGetFederationToken :: GetFederationToken -> TestTree testGetFederationToken = req "GetFederationToken" "fixture/GetFederationToken.yaml" testGetSessionToken :: GetSessionToken -> TestTree testGetSessionToken = req "GetSessionToken" "fixture/GetSessionToken.yaml" testAssumeRoleWithSAML :: AssumeRoleWithSAML -> TestTree testAssumeRoleWithSAML = req "AssumeRoleWithSAML" "fixture/AssumeRoleWithSAML.yaml" -- Responses testAssumeRoleResponse :: AssumeRoleResponse -> TestTree testAssumeRoleResponse = res "AssumeRoleResponse" "fixture/AssumeRoleResponse.proto" sTS (Proxy :: Proxy AssumeRole) testDecodeAuthorizationMessageResponse :: DecodeAuthorizationMessageResponse -> TestTree testDecodeAuthorizationMessageResponse = res "DecodeAuthorizationMessageResponse" "fixture/DecodeAuthorizationMessageResponse.proto" sTS (Proxy :: Proxy DecodeAuthorizationMessage) testAssumeRoleWithWebIdentityResponse :: AssumeRoleWithWebIdentityResponse -> TestTree testAssumeRoleWithWebIdentityResponse = res "AssumeRoleWithWebIdentityResponse" "fixture/AssumeRoleWithWebIdentityResponse.proto" sTS (Proxy :: Proxy AssumeRoleWithWebIdentity) testGetFederationTokenResponse :: GetFederationTokenResponse -> TestTree testGetFederationTokenResponse = res "GetFederationTokenResponse" "fixture/GetFederationTokenResponse.proto" sTS (Proxy :: Proxy GetFederationToken) testGetSessionTokenResponse :: GetSessionTokenResponse -> TestTree testGetSessionTokenResponse = res "GetSessionTokenResponse" "fixture/GetSessionTokenResponse.proto" sTS (Proxy :: Proxy GetSessionToken) testAssumeRoleWithSAMLResponse :: AssumeRoleWithSAMLResponse -> TestTree testAssumeRoleWithSAMLResponse = res "AssumeRoleWithSAMLResponse" "fixture/AssumeRoleWithSAMLResponse.proto" sTS (Proxy :: Proxy AssumeRoleWithSAML)