-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directly use the taskcat/taskcat Docker container #20
Comments
Add a test to verify the success scenario, where taskcat is provided with valid AWS credentials and deploys a CloudFormation template. Because the mock layer has not yet been implemented, we are actually hitting AWS to run these tests. The AWS credentials are provided to the test via Maven Surefire parameters passed through the `mvn` command from the workflow. The credentials themselves are stored as repository secrets. We implement the success scenario ahead of the changes to the Docker container to ensure that the action works both before and after we use the taskcat/taskcat container instead of the local Dockerfile. Associated issue: #20
When running the JUnit tests through GitHub Actions, we often end up with "java.lang.IllegalThreadStateExceptions" being thrown due to asserts being ran before act has finished executing. By adding the Process.waitFor() call before the assertions, we wait until the act process has finished before running the rest of the tests. Associated issue: #20
Because both the Using the
|
Add a test that prints taskcat's help output by calling taskcat with no commands. This test is designed to act as a starting point for the implementation of a generic `commands` input to the GitHub Action, allowing users the flexibility of running arbitrary tasckat commands, rather than the hard-coded `taskcat test run`. Associated issue: #20
Allow users of this action to run any supported taskcat command, rather than the previously hard-coded `taskcat test run`. This commit also removes the dependency on the local Dockerfile, in favor of the official taskcat/tasckat container hosted on Docker Hub. Commands are passed to the container by overriding the entrypoint through the action.yaml file. The `taskcat` invocation itself is also handled by the action. Users only need to specify the command, subcommands, and arguments to be passed to run their tests. Associated issue: #20
Add a test to verify the success scenario, where taskcat is provided with valid AWS credentials and deploys a CloudFormation template. Because the mock layer has not yet been implemented, we are actually hitting AWS to run these tests. The AWS credentials are provided to the test via Maven Surefire parameters passed through the `mvn` command from the workflow. The credentials themselves are stored as repository secrets. We implement the success scenario ahead of the changes to the Docker container to ensure that the action works both before and after we use the taskcat/taskcat container instead of the local Dockerfile. Associated issue: #20
When running the JUnit tests through GitHub Actions, we often end up with "java.lang.IllegalThreadStateExceptions" being thrown due to asserts being ran before act has finished executing. By adding the Process.waitFor() call before the assertions, we wait until the act process has finished before running the rest of the tests. Associated issue: #20
Add a test that prints taskcat's help output by calling taskcat with no commands. This test is designed to act as a starting point for the implementation of a generic `commands` input to the GitHub Action, allowing users the flexibility of running arbitrary tasckat commands, rather than the hard-coded `taskcat test run`. Associated issue: #20
Allow users of this action to run any supported taskcat command, rather than the previously hard-coded `taskcat test run`. This commit also removes the dependency on the local Dockerfile, in favor of the official taskcat/tasckat container hosted on Docker Hub. Commands are passed to the container by overriding the entrypoint through the action.yaml file. The `taskcat` invocation itself is also handled by the action. Users only need to specify the command, subcommands, and arguments to be passed to run their tests. Associated issue: #20
🎉 This issue has been resolved in version 1.0.0-develop.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Add a test to verify the success scenario, where taskcat is provided with valid AWS credentials and deploys a CloudFormation template. Because the mock layer has not yet been implemented, we are actually hitting AWS to run these tests. The AWS credentials are provided to the test via Maven Surefire parameters passed through the `mvn` command from the workflow. The credentials themselves are stored as repository secrets. We implement the success scenario ahead of the changes to the Docker container to ensure that the action works both before and after we use the taskcat/taskcat container instead of the local Dockerfile. Associated issue: #20
When running the JUnit tests through GitHub Actions, we often end up with "java.lang.IllegalThreadStateExceptions" being thrown due to asserts being ran before act has finished executing. By adding the Process.waitFor() call before the assertions, we wait until the act process has finished before running the rest of the tests. Associated issue: #20
Add a test that prints taskcat's help output by calling taskcat with no commands. This test is designed to act as a starting point for the implementation of a generic `commands` input to the GitHub Action, allowing users the flexibility of running arbitrary tasckat commands, rather than the hard-coded `taskcat test run`. Associated issue: #20
Allow users of this action to run any supported taskcat command, rather than the previously hard-coded `taskcat test run`. This commit also removes the dependency on the local Dockerfile, in favor of the official taskcat/tasckat container hosted on Docker Hub. Commands are passed to the container by overriding the entrypoint through the action.yaml file. The `taskcat` invocation itself is also handled by the action. Users only need to specify the command, subcommands, and arguments to be passed to run their tests. Associated issue: #20
Add a test to verify the success scenario, where taskcat is provided with valid AWS credentials and deploys a CloudFormation template. Because the mock layer has not yet been implemented, we are actually hitting AWS to run these tests. The AWS credentials are provided to the test via Maven Surefire parameters passed through the `mvn` command from the workflow. The credentials themselves are stored as repository secrets. We implement the success scenario ahead of the changes to the Docker container to ensure that the action works both before and after we use the taskcat/taskcat container instead of the local Dockerfile. Associated issue: #20
When running the JUnit tests through GitHub Actions, we often end up with "java.lang.IllegalThreadStateExceptions" being thrown due to asserts being ran before act has finished executing. By adding the Process.waitFor() call before the assertions, we wait until the act process has finished before running the rest of the tests. Associated issue: #20
Add a test that prints taskcat's help output by calling taskcat with no commands. This test is designed to act as a starting point for the implementation of a generic `commands` input to the GitHub Action, allowing users the flexibility of running arbitrary tasckat commands, rather than the hard-coded `taskcat test run`. Associated issue: #20
Allow users of this action to run any supported taskcat command, rather than the previously hard-coded `taskcat test run`. This commit also removes the dependency on the local Dockerfile, in favor of the official taskcat/tasckat container hosted on Docker Hub. Commands are passed to the container by overriding the entrypoint through the action.yaml file. The `taskcat` invocation itself is also handled by the action. Users only need to specify the command, subcommands, and arguments to be passed to run their tests. Associated issue: #20
After trying to reduce dependencies and eliminate the need to create a new container to run taskcat in GitHub workflows, it seems that it might be easier to simply control the execution from within a script, bypassing the restrictions set by the GitHub Action's metadata syntax. This commit re-introduces the entrypoint.sh script and the Dockerfile. Building on the official taskcat/taskcat container, the script allows users to pass arbitrary commands to taskcat from GitHub workflows, as they would when invoking the taskcat from the command line. Associated issues: #20, #26
Due to validation and implementation differences between act and the GitHub hosted runners, we cannot solely rely on the JUnit tests to ensure the correct functionality of the action. To help catch errors, a job was added to this repository's GitHub workflow, which runs the example in this project's README file against the sample CloudFormation template used by the JUnit tests. While we can only rely on the action's return code to determine if the execution was successful, it can act as a simple tool to detect errors that act might have missed. Associated issue: #20, #26
🎉 This issue has been resolved in version 1.0.3-develop.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 1.0.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
docs(readme): update the project's README file
Eliminate the need for a local Dockerfile—we can directly use the
taskcat/taskcat:latest
container image on Docker Hub. Custom scripts can be executed without the need to define aDockerfile
by using thepre-entrypoint
andpost-entrypoint
.The text was updated successfully, but these errors were encountered: