-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
334 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
package containers | ||
|
||
import ( | ||
"github.com/babylonlabs-io/btc-staker/itest/testutil" | ||
"github.com/stretchr/testify/require" | ||
"testing" | ||
) | ||
|
||
// ImageConfig contains all images and their respective tags | ||
// needed for running e2e tests. | ||
type ImageConfig struct { | ||
BitcoindRepository string | ||
BitcoindVersion string | ||
BabylonRepository string | ||
BabylonVersion string | ||
} | ||
|
||
//nolint:deadcode | ||
const ( | ||
dockerBitcoindRepository = "lncm/bitcoind" | ||
dockerBitcoindVersionTag = "v26.0" | ||
dockerBabylondRepository = "babylonlabs/babylond" | ||
) | ||
|
||
// NewImageConfig returns ImageConfig needed for running e2e test. | ||
func NewImageConfig() ImageConfig { | ||
config := ImageConfig{ | ||
func NewImageConfig(t *testing.T) ImageConfig { | ||
babylondVersion, err := testutil.GetBabylonVersion() | ||
require.NoError(t, err) | ||
|
||
return ImageConfig{ | ||
BitcoindRepository: dockerBitcoindRepository, | ||
BitcoindVersion: dockerBitcoindVersionTag, | ||
BabylonRepository: dockerBabylondRepository, | ||
BabylonVersion: babylondVersion, | ||
} | ||
return config | ||
|
||
} |
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.