Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.
Synopsis
- data TestRepositoryTriggers = TestRepositoryTriggers' {}
- newTestRepositoryTriggers :: Text -> TestRepositoryTriggers
- testRepositoryTriggers_repositoryName :: Lens' TestRepositoryTriggers Text
- testRepositoryTriggers_triggers :: Lens' TestRepositoryTriggers [RepositoryTrigger]
- data TestRepositoryTriggersResponse = TestRepositoryTriggersResponse' {}
- newTestRepositoryTriggersResponse :: Int -> TestRepositoryTriggersResponse
- testRepositoryTriggersResponse_failedExecutions :: Lens' TestRepositoryTriggersResponse (Maybe [RepositoryTriggerExecutionFailure])
- testRepositoryTriggersResponse_successfulExecutions :: Lens' TestRepositoryTriggersResponse (Maybe [Text])
- testRepositoryTriggersResponse_httpStatus :: Lens' TestRepositoryTriggersResponse Int
Creating a Request
data TestRepositoryTriggers Source #
Represents the input of a test repository triggers operation.
See: newTestRepositoryTriggers
smart constructor.
TestRepositoryTriggers' | |
|
Instances
newTestRepositoryTriggers Source #
Create a value of TestRepositoryTriggers
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:repositoryName:TestRepositoryTriggers'
, testRepositoryTriggers_repositoryName
- The name of the repository in which to test the triggers.
$sel:triggers:TestRepositoryTriggers'
, testRepositoryTriggers_triggers
- The list of triggers to test.
Request Lenses
testRepositoryTriggers_repositoryName :: Lens' TestRepositoryTriggers Text Source #
The name of the repository in which to test the triggers.
testRepositoryTriggers_triggers :: Lens' TestRepositoryTriggers [RepositoryTrigger] Source #
The list of triggers to test.
Destructuring the Response
data TestRepositoryTriggersResponse Source #
Represents the output of a test repository triggers operation.
See: newTestRepositoryTriggersResponse
smart constructor.
TestRepositoryTriggersResponse' | |
|
Instances
newTestRepositoryTriggersResponse Source #
Create a value of TestRepositoryTriggersResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:failedExecutions:TestRepositoryTriggersResponse'
, testRepositoryTriggersResponse_failedExecutions
- The list of triggers that were not tested. This list provides the names
of the triggers that could not be tested, separated by commas.
$sel:successfulExecutions:TestRepositoryTriggersResponse'
, testRepositoryTriggersResponse_successfulExecutions
- The list of triggers that were successfully tested. This list provides
the names of the triggers that were successfully tested, separated by
commas.
$sel:httpStatus:TestRepositoryTriggersResponse'
, testRepositoryTriggersResponse_httpStatus
- The response's http status code.
Response Lenses
testRepositoryTriggersResponse_failedExecutions :: Lens' TestRepositoryTriggersResponse (Maybe [RepositoryTriggerExecutionFailure]) Source #
The list of triggers that were not tested. This list provides the names of the triggers that could not be tested, separated by commas.
testRepositoryTriggersResponse_successfulExecutions :: Lens' TestRepositoryTriggersResponse (Maybe [Text]) Source #
The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.
testRepositoryTriggersResponse_httpStatus :: Lens' TestRepositoryTriggersResponse Int Source #
The response's http status code.