Skip to content

Commit

Permalink
Improve Automation Load Test (#13313)
Browse files Browse the repository at this point in the history
* bump load test DB size to 20G

* add RemoveNamespace test config
  • Loading branch information
anirudhwarrier authored May 24, 2024
1 parent 4718aa7 commit 1c51553
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/load/automationv2_1/automationv2_1_test.go
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

0 comments on commit 1c51553

Please sign in to comment.