Skip to content

Commit 36a9282

Browse files
author
maxtaran2010
committed
fix: correct typos in docs, comments, and examples
Fix 17 misspellings found via codespell scan across source comments, docs, and example files. Signed-off-by: maxtaran2010 <ocotifuzo727@gmail.com>
1 parent d067225 commit 36a9282

16 files changed

Lines changed: 18 additions & 18 deletions

File tree

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ collections:
208208
5. Add `index.html` file to newly create folder:
209209
```
210210
---
211-
layout: collection-browser # DO NOT CAHNGE THIS
211+
layout: collection-browser # DO NOT CHANGE THIS
212212
title: Use cases
213213
subtitle: Learn how to work with Terratest.
214214
excerpt: Learn how to work with Terratest.

docs/_docs/01_getting-started/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Here's how you automate this process with Terratest:
231231
232232
{% include examples/explorer.html example_id='kubernetes-hello-world' file_id='test_code' class='wide quick-start-examples' skip_learn_more=true skip_view_on_github=true skip_tags=true %}
233233
234-
The test code above uses Kuberenetes helpers built into Terratest to run `kubectl apply`, wait for the service to come
234+
The test code above uses Kubernetes helpers built into Terratest to run `kubectl apply`, wait for the service to come
235235
up, get the service endpoint, make HTTP requests to the service (with plenty of retries), check the response is what
236236
we expect, and runs `kubectl delete` at the end. You run this test with `go test` as well!
237237

docs/assets/js/collection-browser_search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* TOC:
55
* - FILTER FUNCTIONS - functions to extract the terms from DOM element(s) and use them in search engine to show/hide elements.
66
* - MAIN - INITIALIZE - initializes Browser Search and registers actions (click etc.) on filter components.
7-
* - SEARCH ENGINE - here is the logic to show & hide elements accoriding to filters terms.
7+
* - SEARCH ENGINE - here is the logic to show & hide elements according to filters terms.
88
* - OTHER
99
*/
1010
(function () {

docs/assets/js/collection-browser_toc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ $(document).ready(function () {
2626
}
2727
})
2828

29-
// Expand / collpase on click
29+
// Expand / collapse on click
3030
$('#toc .nav-collapse-handler').on('click', function() {
3131
toggleNav($(this))
3232
})
3333

3434
$(docSidebarInitialExpand)
3535
})
3636

37-
// Expand / collpase on click
37+
// Expand / collapse on click
3838
function toggleNav(el) {
3939
if (el.hasClass('collapsed')) {
4040
if (!el.hasClass('no-children')) {

docs/assets/js/examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $(document).ready(function () {
3333
// Open example and scroll to examples section when user clicks on
3434
// tech in the header
3535
$('.link-to-test-with-terratest').on('click', function() {
36-
// Find any containting the keyword from data-target
36+
// Find any containing the keyword from data-target
3737
const found = $('.navs .examples__nav-item[data-id*="'+$(this).data('target')+'"]')
3838
if (found && found.length > 0) {
3939
openExample('index_page', $(found[0]).data('id'))

examples/azure/terraform-azure-aks-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This folder contains a Terraform module that deploys a basic AKS cluster in [Azure](https://azure.microsoft.com/) to demonstrate how you can use Terratest to write automated tests for your Azure Terraform code.
44

5-
This module deploys [Azure Kubenetes Service](https://azure.microsoft.com/en-us/services/kubernetes-service/), then deploys nginx by a kubernetes yaml file with a Public IP Address using the `Service` resource.
5+
This module deploys [Azure Kubernetes Service](https://azure.microsoft.com/en-us/services/kubernetes-service/), then deploys nginx by a kubernetes yaml file with a Public IP Address using the `Service` resource.
66

77
Check out [test/azure/terraform_azure_aks_example_test.go](/test/azure/terraform_azure_aks_example_test.go) to see how you can write automated tests for this module and validate the configuration of the parameters and options.
88

examples/azure/terraform-azure-aks-example/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ variable "ssh_public_key" {
2626
}
2727

2828
variable "dns_prefix" {
29-
description = "The prefix to set for the AKS cluster resoureces names."
29+
description = "The prefix to set for the AKS cluster resources names."
3030
default = "k8stest"
3131
}
3232

examples/azure/terraform-azure-availabilityset-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Terraform Azure Availability Set Example
22

33
This folder contains a simple Terraform module that deploys resources in [Azure](https://azure.microsoft.com/) to demonstrate
4-
how you can use Terratest to write automated tests for your Azure Terraform code. This module deploys an Availability Set with one attched Virtual Machine.
4+
how you can use Terratest to write automated tests for your Azure Terraform code. This module deploys an Availability Set with one attached Virtual Machine.
55

66
- An [Availability Set](https://docs.microsoft.com/en-us/azure/virtual-machines/availability) that gives the module the following:
77
- `Availability Set` with the name specified in the `availability_set_name` output variable.

modules/aws/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ func NewS3UploaderE(t testing.TestingT, region string) (*transfermanager.Client,
10611061
return NewS3UploaderContextE(t, context.Background(), region)
10621062
}
10631063

1064-
// S3AccessLoggingNotEnabledErr is a custom error that occurs when acess logging hasn't been enabled on the S3 Bucket
1064+
// S3AccessLoggingNotEnabledErr is a custom error that occurs when access logging hasn't been enabled on the S3 Bucket
10651065
type S3AccessLoggingNotEnabledErr struct {
10661066
OriginBucket string
10671067
Region string

modules/core/logger/parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func parseAndStoreTestOutput(
169169

170170
case strings.HasPrefix(data, "Test"):
171171
// Heuristic: `go test` will only execute test functions named `Test.*`, so we assume any line prefixed
172-
// with `Test` is a test output for a named test. Also assume that test output will be space delimeted and
172+
// with `Test` is a test output for a named test. Also assume that test output will be space delimited and
173173
// test names can't contain spaces (because they are function names).
174174
// This must be modified when `logger.DoLog` changes.
175175
vals := strings.Split(data, " ")

0 commit comments

Comments
 (0)