Skip to content

Commit

Permalink
add method to export test config as base64 (#12008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel authored Feb 13, 2024
1 parent 2da47a9 commit 13d8b49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions integration-tests/testconfig/testconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ func (c TestConfig) GetConfigurationName() string {
return c.ConfigurationName
}

func (c *TestConfig) AsBase64() (string, error) {
content, err := toml.Marshal(*c)
if err != nil {
return "", errors.Wrapf(err, "error marshaling test config")
}

return base64.StdEncoding.EncodeToString(content), nil
}

type Common struct {
ChainlinkNodeFunding *float64 `toml:"chainlink_node_funding"`
}
Expand Down

0 comments on commit 13d8b49

Please sign in to comment.