You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_docs/04_community/contributing.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,9 @@ We accept different types of contributions for each of these two types of helper
47
47
These are helper functions that integrate with various DevOps tools—e.g., Terraform, Docker, Packer, and
48
48
Kubernetes—that you can use to deploy infrastructure in your automated tests. Examples:
49
49
50
-
*`terraform.InitAndApply`: run `terraform init` and `terraform apply`.
51
-
*`packer.BuildArtifacts`: run `packer build`.
52
-
*`shell.RunCommandAndGetOutput`: run an arbitrary shell command and return `stdout` and `stderr` as a string.
50
+
*`terraform.InitAndApplyContext`: run `terraform init` and `terraform apply`.
51
+
*`packer.BuildArtifactsContext`: run `packer build`.
52
+
*`shell.RunCommandContextAndGetOutput`: run an arbitrary shell command and return `stdout` and `stderr` as a string.
53
53
54
54
Here are the guidelines for contributions with external tools:
55
55
@@ -66,10 +66,10 @@ Here are the guidelines for contributions with external tools:
66
66
These are helper functions for creating, destroying, and validating infrastructure directly via API calls or SDKs.
67
67
Examples:
68
68
69
-
*`http_helper.HttpGetWithRetry`: make an HTTP request, retrying until you get a certain expected response.
70
-
*`ssh.CheckSshCommand`: SSH to a server and execute a command.
71
-
*`aws.CreateS3Bucket`: create an S3 bucket.
72
-
*`aws.GetPrivateIpsOfEc2Instances`: use the AWS APIs to fetch IPs of some EC2 instances.
69
+
*`http_helper.HTTPGetWithRetryContext`: make an HTTP request, retrying until you get a certain expected response.
70
+
*`ssh.CheckSSHCommandContext`: SSH to a server and execute a command.
71
+
*`aws.CreateS3BucketContext`: create an S3 bucket.
72
+
*`aws.GetPrivateIpsOfEc2InstancesContext`: use the AWS APIs to fetch IPs of some EC2 instances.
73
73
74
74
The number of possible such helpers is nearly infinite, so to avoid Terratest becoming a gigantic, sprawling library
75
75
we ask that contributions for new infrastructure helpers are limited to:
@@ -81,8 +81,8 @@ we ask that contributions for new infrastructure helpers are limited to:
81
81
1.**Complexity**: we ask that you only contribute infrastructure and validation helpers for code that is relatively
82
82
complex to do from scratch. For example, a helper that merely wraps an existing function in the AWS or GCP SDK is
83
83
not a great choice, as the wrapper isn't contributing much value, but is bloating the Terratest API. On the other
84
-
hand, helpers that expose simple APIs for complex logic are great contributions: `ssh.CheckSshCommand` is a great
85
-
example of this, as it provides a simple one-line interface for dozens of lines of complicated SSH logic.
84
+
hand, helpers that expose simple APIs for complex logic are great contributions: `ssh.CheckSSHCommandContext` is a
85
+
great example of this, as it provides a simple one-line interface for dozens of lines of complicated SSH logic.
86
86
87
87
1.**Popularity**: Terratest should only contain helpers for common use cases that come up again and again in the
88
88
course of testing. We don't want to bloat the library with lots of esoteric helpers for rarely used tools, so
@@ -262,7 +262,7 @@ MINOR, and PATCH versions on each release to indicate any incompatibilities.
262
262
263
263
### Developing For Azure
264
264
265
-
Azure supports multliple cloud environments. In order to properly register the correct environment for you test code, you need to use the Azure SDK Client Factory.
265
+
Azure supports multiple cloud environments. In order to properly register the correct environment for you test code, you need to use the Azure SDK Client Factory.
Copy file name to clipboardExpand all lines: examples/terraform-asg-scp-example/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,14 @@ When a test fails, it is often important to be able to quickly get to logs and c
22
22
You can use terratest to help with this task by specifying `RemoteFileSpecification` structs that describe which files you want to copy from your instances:
0 commit comments