-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge test changes from core integration-tests (#124)
- Loading branch information
Showing
47 changed files
with
1,562 additions
and
1,187 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Package actions enables common chainlink interactions | ||
package actions | ||
|
||
import ( | ||
"github.com/pkg/errors" | ||
|
||
"github.com/smartcontractkit/chainlink/integration-tests/docker/test_env" | ||
) | ||
|
||
// UpgradeChainlinkNodeVersions upgrades all Chainlink nodes to a new version, and then runs the test environment | ||
// to apply the upgrades | ||
func UpgradeChainlinkNodeVersionsLocal( | ||
newImage, newVersion string, | ||
nodes ...*test_env.ClNode, | ||
) error { | ||
if newImage == "" && newVersion == "" { | ||
return errors.New("unable to upgrade node version, found empty image and version, must provide either a new image or a new version") | ||
} | ||
for _, node := range nodes { | ||
if err := node.UpgradeVersion(node.NodeConfig, newImage, newVersion); err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
} |
Oops, something went wrong.