Skip to content
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

Spelling #89

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion chaosmonkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type (
// Exception describes clusters that have been opted out of chaos monkey
// If one of the members is a "*", it matches everything. That is the only
// wildcard value
// For example, this will opt-out all of the cluters in the test account:
// For example, this will opt-out all of the clusters in the test account:
// Exception{ Account:"test", Stack:"*", Cluster:"*", Region: "*"}
Exception struct {
Account string
Expand Down
10 changes: 5 additions & 5 deletions config/monkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (m *Monkey) AccountEnabled(account string) (bool, error) {
return false, nil
}

// Accounts return a list of accounts where Choas Monkey is enabled
// Accounts return a list of accounts where Chaos Monkey is enabled
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brand

func (m *Monkey) Accounts() ([]string, error) {
err := m.readRemoteConfig()
if err != nil {
Expand Down Expand Up @@ -307,7 +307,7 @@ func (m *Monkey) Trackers() ([]string, error) {
return m.getStringSlice(param.Trackers)
}

// ErrorCounter returns the names of the backend implementions for
// ErrorCounter returns the names of the backend implementations for
// error counters. Intended for monitoring/alerting.
func (m *Monkey) ErrorCounter() string {
return m.v.GetString(param.ErrorCounter)
Expand Down Expand Up @@ -341,7 +341,7 @@ func (m *Monkey) SpinnakerEndpoint() string {
return m.v.GetString(param.SpinnakerEndpoint)
}

// SpinnakerCertificate retunrs a path to a .p12 file that contains a TLS cert
// SpinnakerCertificate returns a path to a .p12 file that contains a TLS cert
// for authenticating against Spinnaker
func (m *Monkey) SpinnakerCertificate() string {
return m.v.GetString(param.SpinnakerCertificate)
Expand All @@ -360,12 +360,12 @@ func (m *Monkey) SpinnakerUser() string {
return m.v.GetString(param.SpinnakerUser)
}

// SpinnakerX509Cert retunrs a path to a X509 cert file
// SpinnakerX509Cert returns a path to a X509 cert file
func (m *Monkey) SpinnakerX509Cert() string {
return m.v.GetString(param.SpinnakerX509Cert)
}

// SpinnakerX509Key retunrs a path to a X509 key file
// SpinnakerX509Key returns a path to a X509 key file
func (m *Monkey) SpinnakerX509Key() string {
return m.v.GetString(param.SpinnakerX509Key)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/Outage-checker.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
An outage checker is used to automatially disable Chaos Monkey during ongoing outages.
An outage checker is used to automatically disable Chaos Monkey during ongoing outages.

If you wish to have Chaos Monkey check if there is an ongoing outage and disable
accordingly, you need to:
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ See the [Constrainer](Constrainer) page for an example implementation.

### 3. Create the file that loads the plugins

File: `$GOPATH/src/example.com/chasmonkey/cmd/chaosmonkey/main.go`
File: `$GOPATH/src/example.com/chaosmonkey/cmd/chaosmonkey/main.go`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brand


It looks like this:

Expand Down
18 changes: 9 additions & 9 deletions migration/migrations.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pages:
- How to deploy: How-to-deploy.md
- Configuration file format: Configuration-file-format.md
- Configuring behavior via Spinnaker: Configuring-behavior-via-spinnaker.md
- Termination behaior: Termination-behavior.md
- Termination behavior: Termination-behavior.md
- Running locally: Running-locally.md
- Plugins:
- Home: plugins/index.md
Expand Down
2 changes: 1 addition & 1 deletion mock/outage.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package mock
// Outage is a mock implementation of outage.Outage
type Outage struct{}

// Outage implemnets outage.Outage.Outage
// Outage implements outage.Outage.Outage
func (o Outage) Outage() (bool, error) {
return false, nil
}
2 changes: 1 addition & 1 deletion mysql/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestConcurrentChecks(t *testing.T) {
}

if got, want := success, 1; got != want {
t.Errorf("got %d succeses, want: %d", got, want)
t.Errorf("got %d successes, want: %d", got, want)
}
}

Expand Down
4 changes: 2 additions & 2 deletions mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var (
port int = 3306
)

// inUse returns true if port accepts connections on localhsot
// inUse returns true if port accepts connections on localhost
func inUse(port int) bool {
conn, err := net.Dial("tcp", fmt.Sprintf("127.0.0.1:%d", port))
if err != nil {
Expand Down Expand Up @@ -155,7 +155,7 @@ func startMySQLContainer() (*exec.Cmd, error) {
}

// initDB initializes the "chaosmonkey" database with the chaosmonkey schemas
// It wipes out any existing database database with the same name
// It wipes out any existing database with the same name
func initDB() error {
db, err := sql.Open("mysql", fmt.Sprintf("root:%s@tcp(127.0.0.1:%d)/", password, port))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion mysql/schedstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func TestScheduleAlreadyExistsConcurrency(t *testing.T) {
}

if got, want := success, 1; got != want {
t.Errorf("got %d succeses, want: %d", got, want)
t.Errorf("got %d successes, want: %d", got, want)
}

// Should cause a deadlock
Expand Down
2 changes: 1 addition & 1 deletion spinnaker/fromjson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestFromJSON(t *testing.T) {
}

if actual.MeanTimeBetweenKillsInWorkDays != 5 {
t.Errorf("Expected mean time: 5. acutal mean time: %d", actual.MeanTimeBetweenKillsInWorkDays)
t.Errorf("Expected mean time: 5. actual mean time: %d", actual.MeanTimeBetweenKillsInWorkDays)
}

if !actual.RegionsAreIndependent {
Expand Down
4 changes: 2 additions & 2 deletions term/terminate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestTerminateDoesntKillInLeashedMode(t *testing.T) {
deps := mockDeps()
cfg := config.Defaults()
// Setting leashed explicitly for code clarity, default is leashed so
// this isn't strictly neededj
// this isn't strictly needed
cfg.Set(param.Leashed, true)

deps.MonkeyCfg = cfg
Expand All @@ -134,7 +134,7 @@ func TestTerminateDoesntKillInLeashedMode(t *testing.T) {

}

// TestNeverTerminateInTestEnv checks that unleasshed terms are not allowed in
// TestNeverTerminateInTestEnv checks that unleashed terms are not allowed in
// test
func TestNeverTerminateUnleashedInTestEnv(t *testing.T) {

Expand Down