Files
zeekay 4f5b7033ba purge Avalanche-lineage keywords (one pure modern version)
Rename Etna-named test scenarios and helper functions to Sov / sovL1 /
local equivalents (sovereign-L1 chain creation is a Lux primitive, no
need to keep the Apricot/Banff/.../Etna upgrade-era branding):

- tests/e2e/commands/etna.go -> tests/e2e/commands/sov.go
- Create/CreateLocal/Deploy/Track/Add/RemoveEtna* -> *Sov*
- ginkgo Describe/It labels: [Etna ...] -> [Sov ...]
- tests/e2e/testcases/chain/sov/etna -> tests/e2e/testcases/chain/sov/sovL1
- createEtnaEVMConfig... -> createSovEVMConfig...
- deployEtnaChain*Flag* -> deploySovChain*Flag*
- initValidatorManagerEtnaFlag -> initValidatorManagerLocalFlag

Neutralized comments:
- "Banff.10:" prefix in luxdConfig.go (key-rename note kept, brand removed)
- "testnet durango" version annotation removed from dependencies.go
2026-05-18 21:03:43 -07:00

70 lines
1.7 KiB
Go

// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package chain
import (
"fmt"
"github.com/luxfi/cli/tests/e2e/commands"
"github.com/luxfi/cli/tests/e2e/utils"
ginkgo "github.com/onsi/ginkgo/v2"
"github.com/onsi/gomega"
)
const (
CLIBinary = "./bin/lux"
keyName = "treasury"
treasuryEVMAddress = "0x9011E888251AB053B7bD1cdB598Db4f9DEd94714"
treasuryPChainAddress = "P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p"
)
var luxdVersion string
var _ = ginkgo.Describe("[Sov Add Validator SOV Local]", func() {
ginkgo.It("Create Sov Chain Config", func() {
_, luxdVersion = commands.CreateSovEVMConfig(
utils.BlockchainName,
treasuryEVMAddress,
commands.PoS,
)
})
ginkgo.It("Can deploy blockchain to localhost and upsize it", func() {
output := commands.StartNetworkWithVersion(luxdVersion)
fmt.Println(output)
output, err := commands.DeploySovBlockchain(
utils.BlockchainName,
"",
nil,
treasuryPChainAddress,
false, // convertOnly
)
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
output, err = commands.AddSovChainValidatorToCluster(
"",
utils.BlockchainName,
"",
treasuryPChainAddress,
1,
true,
)
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
})
ginkgo.It("Can destroy local node", func() {
output, err := commands.DestroyLocalNode(utils.TestLocalNodeName)
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
})
ginkgo.It("Can destroy Sov Local Network", func() {
commands.CleanNetwork()
})
ginkgo.It("Can remove Sov Chain Config", func() {
commands.DeleteChainConfig(utils.BlockchainName)
})
})