Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests #414

Merged
merged 81 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
7a46517
init setup e2e
DongLieu Jan 11, 2024
65b1acb
add terraibctesting
expertdicer Jan 11, 2024
7824bb3
configurer and e2e setup
DongLieu Jan 11, 2024
c5c7b76
Merge branch 'dong/e2eIbcHooks' of https://github.com/Genuine-labs/te…
DongLieu Jan 11, 2024
aedc1aa
scrip run for e2e
DongLieu Jan 12, 2024
dd768c1
add e2e.mk and update init.Dockerfile
DongLieu Jan 16, 2024
c06b4c8
fix make for e2e
DongLieu Jan 16, 2024
197d816
updates
DongLieu Jan 16, 2024
b4e2f4e
updates
DongLieu Jan 22, 2024
baacda3
minor
DongLieu Jan 22, 2024
0365fc4
terra params init
expertdicer Jan 23, 2024
cd44117
sort coins before add
expertdicer Jan 23, 2024
f8bbafa
update version and add script run node
DongLieu Jan 23, 2024
f23a21a
change hermes image
expertdicer Jan 23, 2024
6b1fea2
Merge branch 'dong/e2eIbcHooks' of https://github.com/Genuine-labs/te…
expertdicer Jan 23, 2024
6c9c33f
mount correct mnemonic file and create channel cmd
expertdicer Jan 23, 2024
3920722
updates
DongLieu Jan 23, 2024
0cdeb85
pass ibc create channel
expertdicer Jan 23, 2024
e2dd949
add counter.wasm and minor fix
expertdicer Jan 23, 2024
ee68b8f
fix InstantiateWasmContract
expertdicer Jan 23, 2024
0291968
minor
DongLieu Jan 23, 2024
41fccc4
fix forward Keeper ICS4 Wrapper
expertdicer Jan 24, 2024
eb398ec
update counter.wasm and success ibc hook test case
expertdicer Jan 24, 2024
5d0ce1d
lint
DongLieu Jan 24, 2024
67e7890
setup 3 chain
DongLieu Jan 24, 2024
75224e1
TestPacketForwardMiddleware
DongLieu Jan 24, 2024
4ab5290
updates
DongLieu Jan 24, 2024
1556828
use new memo
DongLieu Jan 24, 2024
748b8f4
hermes2
DongLieu Jan 24, 2024
76819a9
success test on pfm
expertdicer Jan 24, 2024
a894a10
remove, lint and refactor
DongLieu Jan 24, 2024
c6c3ba5
testFeeTax
DongLieu Jan 25, 2024
37b3519
right config for fee tax
phamminh0811 Jan 26, 2024
1ca2c89
add fee grant test
phamminh0811 Jan 26, 2024
685ce3d
try create a proposal
phamminh0811 Jan 26, 2024
24ec117
fix proposal and add multi send test
phamminh0811 Jan 26, 2024
8dce58c
fix burn-tax-exemption-test.sh and add MultiSend cli to custom bank
phamminh0811 Jan 26, 2024
2c9597a
Add TestFeeTaxWasm
phamminh0811 Jan 26, 2024
cf5d853
readme
expertdicer Jan 27, 2024
976f888
Fix wasm tax
phamminh0811 Jan 27, 2024
f43fa74
fix wasm hooks query
phamminh0811 Jan 27, 2024
4c12ada
add e2e ci
phamminh0811 Jan 28, 2024
3f6b523
update burn-tax scripts
phamminh0811 Jan 28, 2024
d0b0e11
remove redundant code
phamminh0811 Jan 28, 2024
b1b1b7c
lint
phamminh0811 Jan 28, 2024
71e91c6
fix compile err
phamminh0811 Jan 28, 2024
6ce57fa
lint
phamminh0811 Jan 28, 2024
31b2e55
lint
expertdicer Jan 28, 2024
9a0785a
lint
expertdicer Jan 28, 2024
0bbf290
merge main
phamminh0811 Jan 29, 2024
3d6859c
revert comment
DongLieu Jan 29, 2024
0d60cb4
use alpine for Docker image
phamminh0811 Jan 30, 2024
1d2b70b
use the already defined Bech prefixes
phamminh0811 Jan 30, 2024
ffc51a3
lint
phamminh0811 Jan 30, 2024
8d30dba
debug ci
phamminh0811 Jan 30, 2024
cb68248
change e2e.Dockerfile to alpine
phamminh0811 Jan 30, 2024
680ed4d
remove all unecessary commands
phamminh0811 Jan 30, 2024
56415be
remove redundant params
phamminh0811 Jan 30, 2024
ff737f7
use uluna instead of luna
phamminh0811 Jan 30, 2024
ee097dd
remove RegisterDenoms function as a result of remove HumanLunaDenom
phamminh0811 Jan 30, 2024
9c90b04
remove set prefixes in params.go and move to e2e_setup_test.go
phamminh0811 Jan 30, 2024
181d6cd
move SetAddressPrefixes to init.go
phamminh0811 Jan 30, 2024
86aea1a
merge frag/foundation
phamminh0811 Feb 1, 2024
31945da
revert assets.go
phamminh0811 Feb 1, 2024
4a3eef0
remove duplicate function for relayer
phamminh0811 Feb 1, 2024
24fd522
change the comparison from contains to equal
phamminh0811 Feb 1, 2024
e7d2d18
use uluna as a variable
phamminh0811 Feb 1, 2024
1207556
use QuerySpecificBalance instead QueryBalances in checking nil case
phamminh0811 Feb 1, 2024
f8b8832
lint
phamminh0811 Feb 1, 2024
6b0bbb4
remove upgrade from e2e
phamminh0811 Feb 1, 2024
555b120
lint
phamminh0811 Feb 1, 2024
b154102
query count after ibc transfer and remove debugging stuff
phamminh0811 Feb 1, 2024
1702543
lint
phamminh0811 Feb 1, 2024
c29cd53
v7 upgrade handler
expertdicer Feb 1, 2024
3dfcfa2
calculate fee-tax base on TaxRate constant
phamminh0811 Feb 2, 2024
c1e27df
remove query tax rate
phamminh0811 Feb 13, 2024
669839a
fixed taxrate
phamminh0811 Feb 13, 2024
7731974
Use constant in time.Minute
phamminh0811 Feb 13, 2024
49949e7
separate calculating tax
phamminh0811 Feb 13, 2024
70ff183
lint
phamminh0811 Feb 13, 2024
9853579
revert containers.go
phamminh0811 Feb 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run End-To-End Tests

on:
workflow_dispatch:
pull_request:
push:
branches:
- frag/foundation
permissions:
contents: read
packages: write

jobs:
e2e:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
-
name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.4'
-
name: Check out repository code
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build e2e image
uses: docker/build-push-action@v3
with:
file: ./tests/e2e/e2e.Dockerfile
context: .
platforms: linux/amd64
tags: terra:debug
build-args: |
BASE_IMG_TAG=debug
-
name: Testing
run: make test-e2e
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/make -f

include tests/e2e/e2e.mk

PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
COMMIT := $(shell git log -1 --format='%H')
Expand Down
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import (
v5 "github.com/classic-terra/core/v2/app/upgrades/v5"
v6 "github.com/classic-terra/core/v2/app/upgrades/v6"
v6_1 "github.com/classic-terra/core/v2/app/upgrades/v6_1"
v7 "github.com/classic-terra/core/v2/app/upgrades/v7"

customante "github.com/classic-terra/core/v2/custom/auth/ante"
custompost "github.com/classic-terra/core/v2/custom/auth/post"
Expand All @@ -67,7 +68,7 @@ var (
DefaultNodeHome string

// Upgrades defines upgrades to be applied to the network
Upgrades = []upgrades.Upgrade{v2.Upgrade, v3.Upgrade, v4.Upgrade, v5.Upgrade, v6.Upgrade, v6_1.Upgrade}
Upgrades = []upgrades.Upgrade{v2.Upgrade, v3.Upgrade, v4.Upgrade, v5.Upgrade, v6.Upgrade, v6_1.Upgrade, v7.Upgrade}

// Forks defines forks to be applied to the network
Forks = []upgrades.Fork{}
Expand Down
21 changes: 21 additions & 0 deletions app/upgrades/v7/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package v7

import (
"github.com/classic-terra/core/v2/app/upgrades"
store "github.com/cosmos/cosmos-sdk/store/types"
forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/router/types"
ibc_hooks_types "github.com/terra-money/core/v2/x/ibc-hooks/types"
)

const UpgradeName = "v7"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateV7UpgradeHandler,
StoreUpgrades: store.StoreUpgrades{
Added: []string{
ibc_hooks_types.StoreKey,
forwardtypes.StoreKey,
},
},
}
20 changes: 20 additions & 0 deletions app/upgrades/v7/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package v7

import (
"github.com/classic-terra/core/v2/app/keepers"
"github.com/classic-terra/core/v2/app/upgrades"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

func CreateV7UpgradeHandler(
mm *module.Manager,
cfg module.Configurator,
_ upgrades.BaseAppParamManager,
_ *keepers.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, cfg, fromVM)
}
}
27 changes: 25 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ require (
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.6.0 // indirect
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
github.com/containerd/continuity v0.3.0 // indirect
github.com/docker/cli v20.10.17+incompatible // indirect
github.com/docker/docker v20.10.19+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae // indirect
github.com/opencontainers/image-spec v1.1.0-rc2 // indirect
github.com/opencontainers/runc v1.1.5 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/tools v0.7.0 // indirect
)

require (
cloud.google.com/go v0.110.8 // indirect
cloud.google.com/go/compute v1.23.0 // indirect
Expand Down Expand Up @@ -58,7 +80,7 @@ require (
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/go-bip39 v1.0.0
github.com/cosmos/gorocksdb v1.2.0 // indirect
github.com/cosmos/iavl v0.19.7 // indirect
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
Expand Down Expand Up @@ -125,6 +147,7 @@ require (
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/ory/dockertest/v3 v3.10.0
github.com/pelletier/go-toml/v2 v2.0.7 // indirect
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand All @@ -139,7 +162,7 @@ require (
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.15.0 // indirect
github.com/spf13/viper v1.15.0
github.com/subosito/gotenv v1.4.2 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
Expand Down
Loading
Loading