packages feed

amazonka-kms-1.0.0: test/Test/AWS/Gen/KMS.hs

{-# 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.KMS
-- Copyright   : (c) 2013-2015 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
module Test.AWS.Gen.KMS where

import Data.Proxy
import Test.AWS.Fixture
import Test.AWS.Prelude
import Test.Tasty
import Network.AWS.KMS
import Test.AWS.KMS.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"
--         [ testDisableKeyRotation $
--             disableKeyRotation
--
--         , testGenerateDataKeyWithoutPlaintext $
--             generateDataKeyWithoutPlaintext
--
--         , testListGrants $
--             listGrants
--
--         , testEncrypt $
--             encrypt
--
--         , testEnableKeyRotation $
--             enableKeyRotation
--
--         , testCreateGrant $
--             createGrant
--
--         , testCreateAlias $
--             createAlias
--
--         , testListAliases $
--             listAliases
--
--         , testGenerateRandom $
--             generateRandom
--
--         , testDisableKey $
--             disableKey
--
--         , testCreateKey $
--             createKey
--
--         , testRetireGrant $
--             retireGrant
--
--         , testListKeys $
--             listKeys
--
--         , testGetKeyRotationStatus $
--             getKeyRotationStatus
--
--         , testGenerateDataKey $
--             generateDataKey
--
--         , testDeleteAlias $
--             deleteAlias
--
--         , testUpdateAlias $
--             updateAlias
--
--         , testDescribeKey $
--             describeKey
--
--         , testDecrypt $
--             decrypt
--
--         , testUpdateKeyDescription $
--             updateKeyDescription
--
--         , testReEncrypt $
--             reEncrypt
--
--         , testListKeyPolicies $
--             listKeyPolicies
--
--         , testEnableKey $
--             enableKey
--
--         , testPutKeyPolicy $
--             putKeyPolicy
--
--         , testRevokeGrant $
--             revokeGrant
--
--         , testGetKeyPolicy $
--             getKeyPolicy
--
--           ]

--     , testGroup "response"
--         [ testDisableKeyRotationResponse $
--             disableKeyRotationResponse
--
--         , testGenerateDataKeyWithoutPlaintextResponse $
--             generateDataKeyWithoutPlaintextResponse
--
--         , testListGrantsResponse $
--             listGrantsResponse
--
--         , testEncryptResponse $
--             encryptResponse
--
--         , testEnableKeyRotationResponse $
--             enableKeyRotationResponse
--
--         , testCreateGrantResponse $
--             createGrantResponse
--
--         , testCreateAliasResponse $
--             createAliasResponse
--
--         , testListAliasesResponse $
--             listAliasesResponse
--
--         , testGenerateRandomResponse $
--             generateRandomResponse
--
--         , testDisableKeyResponse $
--             disableKeyResponse
--
--         , testCreateKeyResponse $
--             createKeyResponse
--
--         , testRetireGrantResponse $
--             retireGrantResponse
--
--         , testListKeysResponse $
--             listKeysResponse
--
--         , testGetKeyRotationStatusResponse $
--             getKeyRotationStatusResponse
--
--         , testGenerateDataKeyResponse $
--             generateDataKeyResponse
--
--         , testDeleteAliasResponse $
--             deleteAliasResponse
--
--         , testUpdateAliasResponse $
--             updateAliasResponse
--
--         , testDescribeKeyResponse $
--             describeKeyResponse
--
--         , testDecryptResponse $
--             decryptResponse
--
--         , testUpdateKeyDescriptionResponse $
--             updateKeyDescriptionResponse
--
--         , testReEncryptResponse $
--             reEncryptResponse
--
--         , testListKeyPoliciesResponse $
--             listKeyPoliciesResponse
--
--         , testEnableKeyResponse $
--             enableKeyResponse
--
--         , testPutKeyPolicyResponse $
--             putKeyPolicyResponse
--
--         , testRevokeGrantResponse $
--             revokeGrantResponse
--
--         , testGetKeyPolicyResponse $
--             getKeyPolicyResponse
--
--           ]
--     ]

-- Requests

testDisableKeyRotation :: DisableKeyRotation -> TestTree
testDisableKeyRotation = req
    "DisableKeyRotation"
    "fixture/DisableKeyRotation"

testGenerateDataKeyWithoutPlaintext :: GenerateDataKeyWithoutPlaintext -> TestTree
testGenerateDataKeyWithoutPlaintext = req
    "GenerateDataKeyWithoutPlaintext"
    "fixture/GenerateDataKeyWithoutPlaintext"

testListGrants :: ListGrants -> TestTree
testListGrants = req
    "ListGrants"
    "fixture/ListGrants"

testEncrypt :: Encrypt -> TestTree
testEncrypt = req
    "Encrypt"
    "fixture/Encrypt"

testEnableKeyRotation :: EnableKeyRotation -> TestTree
testEnableKeyRotation = req
    "EnableKeyRotation"
    "fixture/EnableKeyRotation"

testCreateGrant :: CreateGrant -> TestTree
testCreateGrant = req
    "CreateGrant"
    "fixture/CreateGrant"

testCreateAlias :: CreateAlias -> TestTree
testCreateAlias = req
    "CreateAlias"
    "fixture/CreateAlias"

testListAliases :: ListAliases -> TestTree
testListAliases = req
    "ListAliases"
    "fixture/ListAliases"

testGenerateRandom :: GenerateRandom -> TestTree
testGenerateRandom = req
    "GenerateRandom"
    "fixture/GenerateRandom"

testDisableKey :: DisableKey -> TestTree
testDisableKey = req
    "DisableKey"
    "fixture/DisableKey"

testCreateKey :: CreateKey -> TestTree
testCreateKey = req
    "CreateKey"
    "fixture/CreateKey"

testRetireGrant :: RetireGrant -> TestTree
testRetireGrant = req
    "RetireGrant"
    "fixture/RetireGrant"

testListKeys :: ListKeys -> TestTree
testListKeys = req
    "ListKeys"
    "fixture/ListKeys"

testGetKeyRotationStatus :: GetKeyRotationStatus -> TestTree
testGetKeyRotationStatus = req
    "GetKeyRotationStatus"
    "fixture/GetKeyRotationStatus"

testGenerateDataKey :: GenerateDataKey -> TestTree
testGenerateDataKey = req
    "GenerateDataKey"
    "fixture/GenerateDataKey"

testDeleteAlias :: DeleteAlias -> TestTree
testDeleteAlias = req
    "DeleteAlias"
    "fixture/DeleteAlias"

testUpdateAlias :: UpdateAlias -> TestTree
testUpdateAlias = req
    "UpdateAlias"
    "fixture/UpdateAlias"

testDescribeKey :: DescribeKey -> TestTree
testDescribeKey = req
    "DescribeKey"
    "fixture/DescribeKey"

testDecrypt :: Decrypt -> TestTree
testDecrypt = req
    "Decrypt"
    "fixture/Decrypt"

testUpdateKeyDescription :: UpdateKeyDescription -> TestTree
testUpdateKeyDescription = req
    "UpdateKeyDescription"
    "fixture/UpdateKeyDescription"

testReEncrypt :: ReEncrypt -> TestTree
testReEncrypt = req
    "ReEncrypt"
    "fixture/ReEncrypt"

testListKeyPolicies :: ListKeyPolicies -> TestTree
testListKeyPolicies = req
    "ListKeyPolicies"
    "fixture/ListKeyPolicies"

testEnableKey :: EnableKey -> TestTree
testEnableKey = req
    "EnableKey"
    "fixture/EnableKey"

testPutKeyPolicy :: PutKeyPolicy -> TestTree
testPutKeyPolicy = req
    "PutKeyPolicy"
    "fixture/PutKeyPolicy"

testRevokeGrant :: RevokeGrant -> TestTree
testRevokeGrant = req
    "RevokeGrant"
    "fixture/RevokeGrant"

testGetKeyPolicy :: GetKeyPolicy -> TestTree
testGetKeyPolicy = req
    "GetKeyPolicy"
    "fixture/GetKeyPolicy"

-- Responses

testDisableKeyRotationResponse :: DisableKeyRotationResponse -> TestTree
testDisableKeyRotationResponse = res
    "DisableKeyRotationResponse"
    "fixture/DisableKeyRotationResponse"
    (Proxy :: Proxy DisableKeyRotation)

testGenerateDataKeyWithoutPlaintextResponse :: GenerateDataKeyWithoutPlaintextResponse -> TestTree
testGenerateDataKeyWithoutPlaintextResponse = res
    "GenerateDataKeyWithoutPlaintextResponse"
    "fixture/GenerateDataKeyWithoutPlaintextResponse"
    (Proxy :: Proxy GenerateDataKeyWithoutPlaintext)

testListGrantsResponse :: ListGrantsResponse -> TestTree
testListGrantsResponse = res
    "ListGrantsResponse"
    "fixture/ListGrantsResponse"
    (Proxy :: Proxy ListGrants)

testEncryptResponse :: EncryptResponse -> TestTree
testEncryptResponse = res
    "EncryptResponse"
    "fixture/EncryptResponse"
    (Proxy :: Proxy Encrypt)

testEnableKeyRotationResponse :: EnableKeyRotationResponse -> TestTree
testEnableKeyRotationResponse = res
    "EnableKeyRotationResponse"
    "fixture/EnableKeyRotationResponse"
    (Proxy :: Proxy EnableKeyRotation)

testCreateGrantResponse :: CreateGrantResponse -> TestTree
testCreateGrantResponse = res
    "CreateGrantResponse"
    "fixture/CreateGrantResponse"
    (Proxy :: Proxy CreateGrant)

testCreateAliasResponse :: CreateAliasResponse -> TestTree
testCreateAliasResponse = res
    "CreateAliasResponse"
    "fixture/CreateAliasResponse"
    (Proxy :: Proxy CreateAlias)

testListAliasesResponse :: ListAliasesResponse -> TestTree
testListAliasesResponse = res
    "ListAliasesResponse"
    "fixture/ListAliasesResponse"
    (Proxy :: Proxy ListAliases)

testGenerateRandomResponse :: GenerateRandomResponse -> TestTree
testGenerateRandomResponse = res
    "GenerateRandomResponse"
    "fixture/GenerateRandomResponse"
    (Proxy :: Proxy GenerateRandom)

testDisableKeyResponse :: DisableKeyResponse -> TestTree
testDisableKeyResponse = res
    "DisableKeyResponse"
    "fixture/DisableKeyResponse"
    (Proxy :: Proxy DisableKey)

testCreateKeyResponse :: CreateKeyResponse -> TestTree
testCreateKeyResponse = res
    "CreateKeyResponse"
    "fixture/CreateKeyResponse"
    (Proxy :: Proxy CreateKey)

testRetireGrantResponse :: RetireGrantResponse -> TestTree
testRetireGrantResponse = res
    "RetireGrantResponse"
    "fixture/RetireGrantResponse"
    (Proxy :: Proxy RetireGrant)

testListKeysResponse :: ListKeysResponse -> TestTree
testListKeysResponse = res
    "ListKeysResponse"
    "fixture/ListKeysResponse"
    (Proxy :: Proxy ListKeys)

testGetKeyRotationStatusResponse :: GetKeyRotationStatusResponse -> TestTree
testGetKeyRotationStatusResponse = res
    "GetKeyRotationStatusResponse"
    "fixture/GetKeyRotationStatusResponse"
    (Proxy :: Proxy GetKeyRotationStatus)

testGenerateDataKeyResponse :: GenerateDataKeyResponse -> TestTree
testGenerateDataKeyResponse = res
    "GenerateDataKeyResponse"
    "fixture/GenerateDataKeyResponse"
    (Proxy :: Proxy GenerateDataKey)

testDeleteAliasResponse :: DeleteAliasResponse -> TestTree
testDeleteAliasResponse = res
    "DeleteAliasResponse"
    "fixture/DeleteAliasResponse"
    (Proxy :: Proxy DeleteAlias)

testUpdateAliasResponse :: UpdateAliasResponse -> TestTree
testUpdateAliasResponse = res
    "UpdateAliasResponse"
    "fixture/UpdateAliasResponse"
    (Proxy :: Proxy UpdateAlias)

testDescribeKeyResponse :: DescribeKeyResponse -> TestTree
testDescribeKeyResponse = res
    "DescribeKeyResponse"
    "fixture/DescribeKeyResponse"
    (Proxy :: Proxy DescribeKey)

testDecryptResponse :: DecryptResponse -> TestTree
testDecryptResponse = res
    "DecryptResponse"
    "fixture/DecryptResponse"
    (Proxy :: Proxy Decrypt)

testUpdateKeyDescriptionResponse :: UpdateKeyDescriptionResponse -> TestTree
testUpdateKeyDescriptionResponse = res
    "UpdateKeyDescriptionResponse"
    "fixture/UpdateKeyDescriptionResponse"
    (Proxy :: Proxy UpdateKeyDescription)

testReEncryptResponse :: ReEncryptResponse -> TestTree
testReEncryptResponse = res
    "ReEncryptResponse"
    "fixture/ReEncryptResponse"
    (Proxy :: Proxy ReEncrypt)

testListKeyPoliciesResponse :: ListKeyPoliciesResponse -> TestTree
testListKeyPoliciesResponse = res
    "ListKeyPoliciesResponse"
    "fixture/ListKeyPoliciesResponse"
    (Proxy :: Proxy ListKeyPolicies)

testEnableKeyResponse :: EnableKeyResponse -> TestTree
testEnableKeyResponse = res
    "EnableKeyResponse"
    "fixture/EnableKeyResponse"
    (Proxy :: Proxy EnableKey)

testPutKeyPolicyResponse :: PutKeyPolicyResponse -> TestTree
testPutKeyPolicyResponse = res
    "PutKeyPolicyResponse"
    "fixture/PutKeyPolicyResponse"
    (Proxy :: Proxy PutKeyPolicy)

testRevokeGrantResponse :: RevokeGrantResponse -> TestTree
testRevokeGrantResponse = res
    "RevokeGrantResponse"
    "fixture/RevokeGrantResponse"
    (Proxy :: Proxy RevokeGrant)

testGetKeyPolicyResponse :: GetKeyPolicyResponse -> TestTree
testGetKeyPolicyResponse = res
    "GetKeyPolicyResponse"
    "fixture/GetKeyPolicyResponse"
    (Proxy :: Proxy GetKeyPolicy)