amazonka-lex-runtime-2.0: test/Test/Amazonka/Gen/LexRuntime.hs
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Test.Amazonka.Gen.LexRuntime
-- Copyright : (c) 2013-2023 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
module Test.Amazonka.Gen.LexRuntime where
import Amazonka.LexRuntime
import qualified Data.Proxy as Proxy
import Test.Amazonka.Fixture
import Test.Amazonka.LexRuntime.Internal
import Test.Amazonka.Prelude
import Test.Tasty
-- 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"
-- [ requestDeleteSession $
-- newDeleteSession
--
-- , requestGetSession $
-- newGetSession
--
-- , requestPostContent $
-- newPostContent
--
-- , requestPostText $
-- newPostText
--
-- , requestPutSession $
-- newPutSession
--
-- ]
-- , testGroup "response"
-- [ responseDeleteSession $
-- newDeleteSessionResponse
--
-- , responseGetSession $
-- newGetSessionResponse
--
-- , responsePostContent $
-- newPostContentResponse
--
-- , responsePostText $
-- newPostTextResponse
--
-- , responsePutSession $
-- newPutSessionResponse
--
-- ]
-- ]
-- Requests
requestDeleteSession :: DeleteSession -> TestTree
requestDeleteSession =
req
"DeleteSession"
"fixture/DeleteSession.yaml"
requestGetSession :: GetSession -> TestTree
requestGetSession =
req
"GetSession"
"fixture/GetSession.yaml"
requestPostText :: PostText -> TestTree
requestPostText =
req
"PostText"
"fixture/PostText.yaml"
requestPutSession :: PutSession -> TestTree
requestPutSession =
req
"PutSession"
"fixture/PutSession.yaml"
-- Responses
responseDeleteSession :: DeleteSessionResponse -> TestTree
responseDeleteSession =
res
"DeleteSessionResponse"
"fixture/DeleteSessionResponse.proto"
defaultService
(Proxy.Proxy :: Proxy.Proxy DeleteSession)
responseGetSession :: GetSessionResponse -> TestTree
responseGetSession =
res
"GetSessionResponse"
"fixture/GetSessionResponse.proto"
defaultService
(Proxy.Proxy :: Proxy.Proxy GetSession)
responsePostText :: PostTextResponse -> TestTree
responsePostText =
res
"PostTextResponse"
"fixture/PostTextResponse.proto"
defaultService
(Proxy.Proxy :: Proxy.Proxy PostText)