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

Improve Automation Load Test #13313

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Password = '%s'`
},
},
"stateful": true,
"capacity": "10Gi",
"capacity": "20Gi",
}

recNodeSpec = map[string]interface{}{
Expand Down Expand Up @@ -798,7 +798,7 @@ Test Duration: %s`
if err != nil {
l.Error().Err(err).Msg("Error increasing TTL of namespace")
}
} else if chainClient.Cfg.IsSimulatedNetwork() {
} else if chainClient.Cfg.IsSimulatedNetwork() || *loadedTestConfig.Automation.General.RemoveNamespace {
err := testEnvironment.Client.RemoveNamespace(testEnvironment.Cfg.Namespace)
if err != nil {
l.Error().Err(err).Msg("Error removing namespace")
Expand Down
1 change: 1 addition & 0 deletions integration-tests/testconfig/automation/automation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ ephemeral_addresses_number = 100

[Load.Common]
chainlink_node_funding = 100
remove_namespace = true

[Load.Automation]
[Load.Automation.General]
Expand Down
7 changes: 7 additions & 0 deletions integration-tests/testconfig/automation/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type General struct {
SpecType *string `toml:"spec_type"`
ChainlinkNodeLogLevel *string `toml:"chainlink_node_log_level"`
UsePrometheus *bool `toml:"use_prometheus"`
RemoveNamespace *bool `toml:"remove_namespace"`
}

func (c *General) Validate() error {
Expand All @@ -66,6 +67,12 @@ func (c *General) Validate() error {
if c.ChainlinkNodeLogLevel == nil {
return errors.New("chainlink_node_log_level must be set")
}
if c.UsePrometheus == nil {
return errors.New("use_prometheus must be set")
}
if c.RemoveNamespace == nil {
return errors.New("remove_namespace must be set")
}

return nil
}
Expand Down
Loading