-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable testifylint and fix the issues (#2065)
## Changes - Enable new linter: testifylint. - Apply fixes with --fix. - Fix remaining issues (mostly with aider). There were 2 cases we --fix did the wrong thing - this seems to a be a bug in linter: Antonboom/testifylint#210 Nonetheless, I kept that check enabled, it seems useful, just need to be fixed manually after autofix. ## Tests Existing tests
- Loading branch information
Showing
77 changed files
with
279 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,10 +254,10 @@ func TestBundleToTerraformPipeline(t *testing.T) { | |
assert.Equal(t, "my pipeline", resource.Name) | ||
assert.Len(t, resource.Library, 2) | ||
assert.Len(t, resource.Notification, 2) | ||
assert.Equal(t, resource.Notification[0].Alerts, []string{"on-update-fatal-failure"}) | ||
assert.Equal(t, resource.Notification[0].EmailRecipients, []string{"[email protected]"}) | ||
assert.Equal(t, resource.Notification[1].Alerts, []string{"on-update-failure", "on-flow-failure"}) | ||
assert.Equal(t, resource.Notification[1].EmailRecipients, []string{"[email protected]", "[email protected]"}) | ||
assert.Equal(t, []string{"on-update-fatal-failure"}, resource.Notification[0].Alerts) | ||
assert.Equal(t, []string{"[email protected]"}, resource.Notification[0].EmailRecipients) | ||
assert.Equal(t, []string{"on-update-failure", "on-flow-failure"}, resource.Notification[1].Alerts) | ||
assert.Equal(t, []string{"[email protected]", "[email protected]"}, resource.Notification[1].EmailRecipients) | ||
assert.Nil(t, out.Data) | ||
} | ||
|
||
|
@@ -454,7 +454,7 @@ func TestBundleToTerraformModelServing(t *testing.T) { | |
assert.Equal(t, "name", resource.Name) | ||
assert.Equal(t, "model_name", resource.Config.ServedModels[0].ModelName) | ||
assert.Equal(t, "1", resource.Config.ServedModels[0].ModelVersion) | ||
assert.Equal(t, true, resource.Config.ServedModels[0].ScaleToZeroEnabled) | ||
assert.True(t, resource.Config.ServedModels[0].ScaleToZeroEnabled) | ||
assert.Equal(t, "Small", resource.Config.ServedModels[0].WorkloadSize) | ||
assert.Equal(t, "model_name-1", resource.Config.TrafficConfig.Routes[0].ServedModelName) | ||
assert.Equal(t, 100, resource.Config.TrafficConfig.Routes[0].TrafficPercentage) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.