-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
- Loading branch information
1 parent
1cc44e9
commit bce47f4
Showing
8 changed files
with
92 additions
and
11 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
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,39 @@ | ||
package neofsid_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/nspcc-dev/neo-go/pkg/util" | ||
"github.com/nspcc-dev/neofs-contract/tests/migration" | ||
) | ||
|
||
func TestMigration_TestNet_0_16_0_to_0_17_0(t *testing.T) { | ||
t.Skip("not working until neo-go#2926 will be resolved") | ||
deployCfg := migration.DeployWithArguments( | ||
true, // Non-notary mode | ||
util.Uint160{}, // Netmap contract | ||
util.Uint160{}, // Container contract | ||
) | ||
|
||
validUpdCfg := migration.UpdateWithArguments( | ||
false, | ||
util.Uint160{}, | ||
util.Uint160{}, | ||
) | ||
|
||
migration.TestRemoteStorageMigration(t, "https://rpc1.morph.t5.fs.neo.org:51331", "neofsid", migration.Options{ | ||
DeployConfig: deployCfg, | ||
UpdateFailures: []migration.UpdateFailScenario{ | ||
migration.InvalidConfigFailure("update to non-notary mode is not supported anymore", | ||
validUpdCfg.ReplaceArgI(0, true), | ||
), | ||
}, | ||
ValidUpdateConfig: validUpdCfg, | ||
UpdateModel: migration.MultiGroupUpdateModel( | ||
migration.PersistedSingleItem("netmapScriptHash"), | ||
migration.RemovedSingleItem("containerScriptHash"), | ||
migration.RemovedSingleItem("notary"), | ||
migration.PersistedItemsWithPrefix("o"), | ||
), | ||
}) | ||
} |
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