From 4d65d6de87b2df957ec4685d5b9d7ecc9a9465a0 Mon Sep 17 00:00:00 2001
From: ruojunm <46366167+ruojunm@users.noreply.github.com>
Date: Thu, 21 Dec 2023 16:36:29 +0800
Subject: [PATCH] fix: remove tags field when creating object/group/bucket
(#1284)
* fix: remove tags field when creating object/group/bucket
---
go.mod | 11 +++++------
go.sum | 12 ++++++------
.../modules/bucket/bucket_handle.go | 2 --
.../blocksyncer/modules/group/group_handler.go | 2 --
.../modules/object/object_handler.go | 3 ---
modular/blocksyncer/test/bs_test.sh | 14 +++++++++++---
modular/blocksyncer/test/case.json | 18 +++++++++---------
modular/gater/metadata_handler_test.go | 8 +++++---
test/e2e/spworkflow/e2e_test.sh | 6 +++---
9 files changed, 39 insertions(+), 37 deletions(-)
diff --git a/go.mod b/go.mod
index 08fdd6b38..d2e00e5fc 100644
--- a/go.mod
+++ b/go.mod
@@ -10,7 +10,7 @@ require (
github.com/aliyun/credentials-go v1.3.0
github.com/avast/retry-go/v4 v4.3.1
github.com/aws/aws-sdk-go v1.44.159
- github.com/bnb-chain/greenfield v1.1.2-0.20231206061231-2c244cebf664
+ github.com/bnb-chain/greenfield v1.2.1-0.20231221015040-11071a6ee95b
github.com/bnb-chain/greenfield-common/go v0.0.0-20230906132736-eb2f0efea228
github.com/bytedance/gopkg v0.0.0-20221122125632-68358b8ecec6
github.com/cometbft/cometbft v0.37.2
@@ -52,8 +52,6 @@ require (
gorm.io/gorm v1.24.7-0.20230306060331-85eaf9eeda11
)
-require gorm.io/datatypes v1.2.0
-
require (
cosmossdk.io/api v0.4.0 // indirect
cosmossdk.io/core v0.6.1 // indirect
@@ -126,7 +124,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
github.com/golang/glog v1.1.0 // indirect
- github.com/golang/mock v1.6.0 // indirect
+ github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.2 // indirect
@@ -189,7 +187,7 @@ require (
github.com/manifoldco/promptui v0.9.0 // indirect
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
- github.com/mattn/go-isatty v0.0.19 // indirect
+ github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/miekg/dns v1.1.53 // indirect
@@ -279,7 +277,7 @@ require (
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sync v0.3.0 // indirect
- golang.org/x/sys v0.13.0 // indirect
+ golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/tools v0.10.0 // indirect
@@ -291,6 +289,7 @@ require (
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
+ gorm.io/datatypes v1.2.0
gorm.io/driver/postgres v1.5.0 // indirect
lukechampine.com/blake3 v1.1.7 // indirect
nhooyr.io/websocket v1.8.7 // indirect
diff --git a/go.sum b/go.sum
index 8622d1ec8..d5c7c0cf7 100644
--- a/go.sum
+++ b/go.sum
@@ -176,8 +176,8 @@ github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsy
github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA=
github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c=
-github.com/bnb-chain/greenfield v1.1.2-0.20231206061231-2c244cebf664 h1:CIj9s2kfDz23WEqLrKHvHJohP8k7jWwXoj2cCy4+6yQ=
-github.com/bnb-chain/greenfield v1.1.2-0.20231206061231-2c244cebf664/go.mod h1:uIyouzA9GY2RaJDkW6jzyUsvwzlDsXB1PiulNcZM4a8=
+github.com/bnb-chain/greenfield v1.2.1-0.20231221015040-11071a6ee95b h1:UBgGcMo5Sf+sCMqkB2zu0sfuuMGBQ+5Ib1QIJ0sLXes=
+github.com/bnb-chain/greenfield v1.2.1-0.20231221015040-11071a6ee95b/go.mod h1:p8M80v/a6mRm+ZPbW8Hfjc1npWktO6BDtebr9/8ETRs=
github.com/bnb-chain/greenfield-cometbft v0.0.0-20231030090949-99ef7dbd1e62 h1:pakuREXV/XfWNwgsTXUQwYirem12Tt+2LGGHIar0z8o=
github.com/bnb-chain/greenfield-cometbft v0.0.0-20231030090949-99ef7dbd1e62/go.mod h1:43yICrTxu90VjEUpQN23bsqi9mua5m5sFQq/ekHwN9s=
github.com/bnb-chain/greenfield-cometbft-db v0.8.1-alpha.1 h1:XcWulGacHVRiSCx90Q8Y//ajOrLNBQWR/KDB89dy3cU=
@@ -1091,8 +1091,8 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky
github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
-github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
-github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
+github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
@@ -2002,8 +2002,8 @@ golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
-golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
+golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
diff --git a/modular/blocksyncer/modules/bucket/bucket_handle.go b/modular/blocksyncer/modules/bucket/bucket_handle.go
index 4d3e72cdd..88a7ba589 100644
--- a/modular/blocksyncer/modules/bucket/bucket_handle.go
+++ b/modular/blocksyncer/modules/bucket/bucket_handle.go
@@ -12,7 +12,6 @@ import (
"github.com/forbole/juno/v4/log"
"github.com/forbole/juno/v4/models"
- "github.com/bnb-chain/greenfield-storage-provider/modular/blocksyncer/util"
storagetypes "github.com/bnb-chain/greenfield/x/storage/types"
)
@@ -108,7 +107,6 @@ func (m *Module) handleCreateBucket(ctx context.Context, block *tmctypes.ResultB
UpdateAt: block.Block.Height,
UpdateTxHash: txHash,
UpdateTime: block.Block.Time.UTC().Unix(),
- Tags: util.GetTagJson(createBucket.Tags),
}
k, v := m.db.SaveBucketToSQL(ctx, bucket)
return map[string][]interface{}{
diff --git a/modular/blocksyncer/modules/group/group_handler.go b/modular/blocksyncer/modules/group/group_handler.go
index b5daef925..9029b6e84 100644
--- a/modular/blocksyncer/modules/group/group_handler.go
+++ b/modular/blocksyncer/modules/group/group_handler.go
@@ -13,7 +13,6 @@ import (
"github.com/forbole/juno/v4/log"
"github.com/forbole/juno/v4/models"
- "github.com/bnb-chain/greenfield-storage-provider/modular/blocksyncer/util"
storagetypes "github.com/bnb-chain/greenfield/x/storage/types"
)
@@ -107,7 +106,6 @@ func (m *Module) handleCreateGroup(ctx context.Context, block *tmctypes.ResultBl
UpdateAt: block.Block.Height,
UpdateTime: block.Block.Time.UTC().Unix(),
Removed: false,
- Tags: util.GetTagJson(createGroup.Tags),
}
membersToAddList = append(membersToAddList, groupItem)
diff --git a/modular/blocksyncer/modules/object/object_handler.go b/modular/blocksyncer/modules/object/object_handler.go
index b8f3dd774..5ce192885 100644
--- a/modular/blocksyncer/modules/object/object_handler.go
+++ b/modular/blocksyncer/modules/object/object_handler.go
@@ -12,7 +12,6 @@ import (
"github.com/forbole/juno/v4/log"
"github.com/forbole/juno/v4/models"
- "github.com/bnb-chain/greenfield-storage-provider/modular/blocksyncer/util"
storagetypes "github.com/bnb-chain/greenfield/x/storage/types"
)
@@ -139,8 +138,6 @@ func (m *Module) handleCreateObject(ctx context.Context, block *tmctypes.ResultB
UpdateTxHash: txHash,
UpdateTime: createObject.CreateAt,
Removed: false,
-
- Tags: util.GetTagJson(createObject.Tags),
}
res := make(map[string][]interface{})
diff --git a/modular/blocksyncer/test/bs_test.sh b/modular/blocksyncer/test/bs_test.sh
index 0e82c6cb2..3f0baa1f0 100644
--- a/modular/blocksyncer/test/bs_test.sh
+++ b/modular/blocksyncer/test/bs_test.sh
@@ -6,8 +6,8 @@ export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
MYSQL_USER="root"
MYSQL_PASSWORD="root"
MYSQL_ADDRESS="127.0.0.1:3306"
-TESTCOVERAGE_THRESHOLD=59
-
+TESTCOVERAGE_THRESHOLD=60
+# GITHUB_WORKSPACE=. # for local testing
workspace=${GITHUB_WORKSPACE}
function make_config() {
@@ -46,7 +46,15 @@ function reset_db() {
function test_bs() {
cd ${workspace}/modular/blocksyncer/ || exit 1
- go test -v -coverprofile=coverage.txt -covermode=atomic
+ go test -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/bnb-chain/greenfield-storage-provider/modular/blocksyncer/...
+
+ exit_status_command=$?
+ if [ $exit_status_command -eq 0 ]; then
+ echo "bs_e2e_test runs successful."
+ else
+ exit $exit_status_command
+ fi
+
go tool cover -func coverage.txt
echo "Quality Gate: checking test coverage is above threshold ..."
diff --git a/modular/blocksyncer/test/case.json b/modular/blocksyncer/test/case.json
index 7f1b30820..2a218f0d7 100644
--- a/modular/blocksyncer/test/case.json
+++ b/modular/blocksyncer/test/case.json
@@ -245,14 +245,14 @@
"block_results": "{\"height\":\"49\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventRejectMigrateBucket\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"4\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"onkz\\\"\",\"index\":true},{\"key\":\"dst_primary_sp_id\",\"value\":\"8\",\"index\":true},{\"key\":\"operator\",\"value\":\"\\\"0xD05E628eBB81A2516DCe142702e28E765d463BB5\\\"\",\"index\":true}]}]}]}"
},
{
- "name": "create bucket with tags",
+ "name": "create bucket and set tags in one block ",
"block": "{\"block\":{\"header\":{\"height\":\"50\",\"time\":\"2023-08-24T17:09:07.49508671Z\"},\"data\":{\"txs\":[\"CvoBCvcBCiMvZ3JlZW5maWVsZC5zdG9yYWdlLk1zZ0NyZWF0ZUJ1Y2tldBLPAQoqMHg4NjljNDBkNDk2YTc5NjM0QkVmNDNhZjhFRWI4MTdGMmI4QTFDQjJjEihmdWxsLW5vZGUtdjEtYWNjMDAwMDAwMDA3Mi1idWMwMDAwMDAwMDAwGAIqKjB4MzM0NEVFYTlGQkQ3ZERBMWM3MWJhZTgzYkY3MjNDODVEOTRlODY1OTJJCPCeDBARGkF1QxEUgocG3uzLeeSImESkzZrlsD9RznBjdMSkQsbRKmAfhTBiV5VDpSpwCzOotaZcCcvH7+i8uGQ/hDw7g28EARJ2ClgKTQomL2Nvc21vcy5jcnlwdG8uZXRoLmV0aHNlY3AyNTZrMS5QdWJLZXkSIwohAjPGjCB4AldgyL0SXau5XO9VPOWF0Am7LH3CMogJhcwxEgUKAwjIBRg0EhoKFQoDQk5CEg4xMjAwMDAwMDAwMDAwMBDgEhpBJYtn8jCJvroTA72YUcY0CdkJlVth7xJvt+voqLZi+MlE845j+GX1tvXCpyCPQjcQHs7pibXQPImBrupKxENk5QA=\"]}}}",
- "block_results": "{\"height\":\"50\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateBucket\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"3\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"b4tag02\\\"\",\"index\":true},{\"key\":\"charged_read_quota\",\"value\":\"\\\"100\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1701856037\\\"\",\"index\":true},{\"key\":\"global_virtual_group_family_id\",\"value\":\"1\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payment_address\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"BUCKET_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"}]}\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]}]}]}"
+ "block_results": "{\"height\":\"50\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateBucket\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"2\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"b4tag02\\\"\",\"index\":true},{\"key\":\"charged_read_quota\",\"value\":\"\\\"100\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1703135559\\\"\",\"index\":true},{\"key\":\"global_virtual_group_family_id\",\"value\":\"1\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payment_address\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"BUCKET_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/greenfield.storage.MsgSetTag\",\"index\":true},{\"key\":\"sender\",\"value\":\"0x2412c55D1b613C87E37aF2172b05343551D19e98\",\"index\":true},{\"key\":\"module\",\"value\":\"storage\",\"index\":true}]},{\"type\":\"greenfield.storage.EventSetTag\",\"attributes\":[{\"key\":\"resource\",\"value\":\"\\\"grn:b::b4tag02\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"}]}\",\"index\":true}]}]}]}"
},
{
"name": "create bucket without tags",
"block": "{\"block\":{\"header\":{\"height\":\"51\",\"time\":\"2023-08-24T17:09:07.49508671Z\"},\"data\":{\"txs\":[\"CvoBCvcBCiMvZ3JlZW5maWVsZC5zdG9yYWdlLk1zZ0NyZWF0ZUJ1Y2tldBLPAQoqMHg4NjljNDBkNDk2YTc5NjM0QkVmNDNhZjhFRWI4MTdGMmI4QTFDQjJjEihmdWxsLW5vZGUtdjEtYWNjMDAwMDAwMDA3Mi1idWMwMDAwMDAwMDAwGAIqKjB4MzM0NEVFYTlGQkQ3ZERBMWM3MWJhZTgzYkY3MjNDODVEOTRlODY1OTJJCPCeDBARGkF1QxEUgocG3uzLeeSImESkzZrlsD9RznBjdMSkQsbRKmAfhTBiV5VDpSpwCzOotaZcCcvH7+i8uGQ/hDw7g28EARJ2ClgKTQomL2Nvc21vcy5jcnlwdG8uZXRoLmV0aHNlY3AyNTZrMS5QdWJLZXkSIwohAjPGjCB4AldgyL0SXau5XO9VPOWF0Am7LH3CMogJhcwxEgUKAwjIBRg0EhoKFQoDQk5CEg4xMjAwMDAwMDAwMDAwMBDgEhpBJYtn8jCJvroTA72YUcY0CdkJlVth7xJvt+voqLZi+MlE845j+GX1tvXCpyCPQjcQHs7pibXQPImBrupKxENk5QA=\"]}}}",
- "block_results": "{\"height\":\"51\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateBucket\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"5\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"b4tag04\\\"\",\"index\":true},{\"key\":\"charged_read_quota\",\"value\":\"\\\"100\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1701856047\\\"\",\"index\":true},{\"key\":\"global_virtual_group_family_id\",\"value\":\"1\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payment_address\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"BUCKET_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[]}\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]}]}]}"
+ "block_results": "{\"height\":\"51\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateBucket\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"5\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"b4tag04\\\"\",\"index\":true},{\"key\":\"charged_read_quota\",\"value\":\"\\\"100\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1701856047\\\"\",\"index\":true},{\"key\":\"global_virtual_group_family_id\",\"value\":\"1\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payment_address\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"BUCKET_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]}]}]}"
},
{
"name": "set tags for the bucket created in block 51",
@@ -260,14 +260,14 @@
"block_results": "{\"height\":\"52\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventSetTag\",\"attributes\":[{\"key\":\"resource\",\"value\":\"\\\"grn:b::b4tag04\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"},{\\\"key\\\":\\\"tag04\\\",\\\"value\\\":\\\"tag04_value\\\"}]}\",\"index\":true}]}]}]}"
},
{
- "name": "create object with tags",
+ "name": "create object and set tags in one block",
"block": "{\"block\":{\"header\":{\"height\":\"53\",\"time\":\"2023-08-24T17:09:07.49508671Z\"},\"data\":{\"txs\":[\"CvoBCvcBCiMvZ3JlZW5maWVsZC5zdG9yYWdlLk1zZ0NyZWF0ZUJ1Y2tldBLPAQoqMHg4NjljNDBkNDk2YTc5NjM0QkVmNDNhZjhFRWI4MTdGMmI4QTFDQjJjEihmdWxsLW5vZGUtdjEtYWNjMDAwMDAwMDA3Mi1idWMwMDAwMDAwMDAwGAIqKjB4MzM0NEVFYTlGQkQ3ZERBMWM3MWJhZTgzYkY3MjNDODVEOTRlODY1OTJJCPCeDBARGkF1QxEUgocG3uzLeeSImESkzZrlsD9RznBjdMSkQsbRKmAfhTBiV5VDpSpwCzOotaZcCcvH7+i8uGQ/hDw7g28EARJ2ClgKTQomL2Nvc21vcy5jcnlwdG8uZXRoLmV0aHNlY3AyNTZrMS5QdWJLZXkSIwohAjPGjCB4AldgyL0SXau5XO9VPOWF0Am7LH3CMogJhcwxEgUKAwjIBRg0EhoKFQoDQk5CEg4xMjAwMDAwMDAwMDAwMBDgEhpBJYtn8jCJvroTA72YUcY0CdkJlVth7xJvt+voqLZi+MlE845j+GX1tvXCpyCPQjcQHs7pibXQPImBrupKxENk5QA=\"]}}}",
- "block_results": "{\"height\":\"53\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateObject\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"7\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"ot005test-bucket\\\"\",\"index\":true},{\"key\":\"checksums\",\"value\":\"[\\\"5R20nlblQIYmf3TI7QUIto2hNz0sG4bi4RTYbngQJV0=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\"]\",\"index\":true},{\"key\":\"content_type\",\"value\":\"\\\"text/plain\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1701858125\\\"\",\"index\":true},{\"key\":\"creator\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"local_virtual_group_id\",\"value\":\"0\",\"index\":true},{\"key\":\"object_id\",\"value\":\"\\\"10\\\"\",\"index\":true},{\"key\":\"object_name\",\"value\":\"\\\"ot005obj002\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payload_size\",\"value\":\"\\\"1000\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"redundancy_type\",\"value\":\"\\\"REDUNDANCY_EC_TYPE\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"OBJECT_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"}]}\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]}]}]}"
+ "block_results": "{\"height\":\"53\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateObject\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"5\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"ot005test-bucket\\\"\",\"index\":true},{\"key\":\"checksums\",\"value\":\"[\\\"5R20nlblQIYmf3TI7QUIto2hNz0sG4bi4RTYbngQJV0=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\"]\",\"index\":true},{\"key\":\"content_type\",\"value\":\"\\\"text/plain\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1703142618\\\"\",\"index\":true},{\"key\":\"creator\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"local_virtual_group_id\",\"value\":\"0\",\"index\":true},{\"key\":\"object_id\",\"value\":\"\\\"2\\\"\",\"index\":true},{\"key\":\"object_name\",\"value\":\"\\\"ot005obj002\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payload_size\",\"value\":\"\\\"1000\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"redundancy_type\",\"value\":\"\\\"REDUNDANCY_EC_TYPE\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"OBJECT_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/greenfield.storage.MsgSetTag\",\"index\":true},{\"key\":\"sender\",\"value\":\"0x2412c55D1b613C87E37aF2172b05343551D19e98\",\"index\":true},{\"key\":\"module\",\"value\":\"storage\",\"index\":true}]},{\"type\":\"greenfield.storage.EventSetTag\",\"attributes\":[{\"key\":\"resource\",\"value\":\"\\\"grn:o::ot005test-bucket/ot005obj002\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"}]}\",\"index\":true}]}]}]}"
},
{
"name": "create object without tags",
"block": "{\"block\":{\"header\":{\"height\":\"54\",\"time\":\"2023-08-24T17:09:07.49508671Z\"},\"data\":{\"txs\":[\"CvoBCvcBCiMvZ3JlZW5maWVsZC5zdG9yYWdlLk1zZ0NyZWF0ZUJ1Y2tldBLPAQoqMHg4NjljNDBkNDk2YTc5NjM0QkVmNDNhZjhFRWI4MTdGMmI4QTFDQjJjEihmdWxsLW5vZGUtdjEtYWNjMDAwMDAwMDA3Mi1idWMwMDAwMDAwMDAwGAIqKjB4MzM0NEVFYTlGQkQ3ZERBMWM3MWJhZTgzYkY3MjNDODVEOTRlODY1OTJJCPCeDBARGkF1QxEUgocG3uzLeeSImESkzZrlsD9RznBjdMSkQsbRKmAfhTBiV5VDpSpwCzOotaZcCcvH7+i8uGQ/hDw7g28EARJ2ClgKTQomL2Nvc21vcy5jcnlwdG8uZXRoLmV0aHNlY3AyNTZrMS5QdWJLZXkSIwohAjPGjCB4AldgyL0SXau5XO9VPOWF0Am7LH3CMogJhcwxEgUKAwjIBRg0EhoKFQoDQk5CEg4xMjAwMDAwMDAwMDAwMBDgEhpBJYtn8jCJvroTA72YUcY0CdkJlVth7xJvt+voqLZi+MlE845j+GX1tvXCpyCPQjcQHs7pibXQPImBrupKxENk5QA=\"]}}}",
- "block_results": "{\"height\":\"54\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateObject\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"7\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"ot005test-bucket\\\"\",\"index\":true},{\"key\":\"checksums\",\"value\":\"[\\\"5R20nlblQIYmf3TI7QUIto2hNz0sG4bi4RTYbngQJV0=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\"]\",\"index\":true},{\"key\":\"content_type\",\"value\":\"\\\"text/plain\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1701858158\\\"\",\"index\":true},{\"key\":\"creator\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"local_virtual_group_id\",\"value\":\"0\",\"index\":true},{\"key\":\"object_id\",\"value\":\"\\\"12\\\"\",\"index\":true},{\"key\":\"object_name\",\"value\":\"\\\"ot005obj004\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payload_size\",\"value\":\"\\\"1000\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"redundancy_type\",\"value\":\"\\\"REDUNDANCY_EC_TYPE\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"OBJECT_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[]}\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]}]}]}"
+ "block_results": "{\"height\":\"54\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateObject\",\"attributes\":[{\"key\":\"bucket_id\",\"value\":\"\\\"7\\\"\",\"index\":true},{\"key\":\"bucket_name\",\"value\":\"\\\"ot005test-bucket\\\"\",\"index\":true},{\"key\":\"checksums\",\"value\":\"[\\\"5R20nlblQIYmf3TI7QUIto2hNz0sG4bi4RTYbngQJV0=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\",\\\"lMpTj/fnie7afVLZS783itrRfPjL3qXq2o35Pvmhd1c=\\\"]\",\"index\":true},{\"key\":\"content_type\",\"value\":\"\\\"text/plain\\\"\",\"index\":true},{\"key\":\"create_at\",\"value\":\"\\\"1701858158\\\"\",\"index\":true},{\"key\":\"creator\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"local_virtual_group_id\",\"value\":\"0\",\"index\":true},{\"key\":\"object_id\",\"value\":\"\\\"12\\\"\",\"index\":true},{\"key\":\"object_name\",\"value\":\"\\\"ot005obj004\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"payload_size\",\"value\":\"\\\"1000\\\"\",\"index\":true},{\"key\":\"primary_sp_id\",\"value\":\"1\",\"index\":true},{\"key\":\"redundancy_type\",\"value\":\"\\\"REDUNDANCY_EC_TYPE\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"status\",\"value\":\"\\\"OBJECT_STATUS_CREATED\\\"\",\"index\":true},{\"key\":\"visibility\",\"value\":\"\\\"VISIBILITY_TYPE_PRIVATE\\\"\",\"index\":true}]}]}]}"
},
{
"name": "set tags for the object created in block 54",
@@ -275,14 +275,14 @@
"block_results": "{\"height\":\"55\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventSetTag\",\"attributes\":[{\"key\":\"resource\",\"value\":\"\\\"grn:o::ot005test-bucket/ot005obj004\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"},{\\\"key\\\":\\\"tag04\\\",\\\"value\\\":\\\"tag04_value\\\"}]}\",\"index\":true}]}]}]}"
},
{
- "name": "create a group with tags",
+ "name": "create a group and set tags in one block",
"block": "{\"block\":{\"header\":{\"height\":\"56\",\"time\":\"2023-08-24T17:09:07.49508671Z\"},\"data\":{\"txs\":[\"CvoBCvcBCiMvZ3JlZW5maWVsZC5zdG9yYWdlLk1zZ0NyZWF0ZUJ1Y2tldBLPAQoqMHg4NjljNDBkNDk2YTc5NjM0QkVmNDNhZjhFRWI4MTdGMmI4QTFDQjJjEihmdWxsLW5vZGUtdjEtYWNjMDAwMDAwMDA3Mi1idWMwMDAwMDAwMDAwGAIqKjB4MzM0NEVFYTlGQkQ3ZERBMWM3MWJhZTgzYkY3MjNDODVEOTRlODY1OTJJCPCeDBARGkF1QxEUgocG3uzLeeSImESkzZrlsD9RznBjdMSkQsbRKmAfhTBiV5VDpSpwCzOotaZcCcvH7+i8uGQ/hDw7g28EARJ2ClgKTQomL2Nvc21vcy5jcnlwdG8uZXRoLmV0aHNlY3AyNTZrMS5QdWJLZXkSIwohAjPGjCB4AldgyL0SXau5XO9VPOWF0Am7LH3CMogJhcwxEgUKAwjIBRg0EhoKFQoDQk5CEg4xMjAwMDAwMDAwMDAwMBDgEhpBJYtn8jCJvroTA72YUcY0CdkJlVth7xJvt+voqLZi+MlE845j+GX1tvXCpyCPQjcQHs7pibXQPImBrupKxENk5QA=\"]}}}",
- "block_results": "{\"height\":\"56\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateGroup\",\"attributes\":[{\"key\":\"extra\",\"value\":\"\\\"\\\"\",\"index\":true},{\"key\":\"group_id\",\"value\":\"\\\"2\\\"\",\"index\":true},{\"key\":\"group_name\",\"value\":\"\\\"g001-02\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"}]}\",\"index\":true}]}]}]}"
+ "block_results": "{\"height\":\"56\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateGroup\",\"attributes\":[{\"key\":\"extra\",\"value\":\"\\\"\\\"\",\"index\":true},{\"key\":\"group_id\",\"value\":\"\\\"2\\\"\",\"index\":true},{\"key\":\"group_name\",\"value\":\"\\\"g001-02\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/greenfield.storage.MsgSetTag\",\"index\":true},{\"key\":\"sender\",\"value\":\"0x2412c55D1b613C87E37aF2172b05343551D19e98\",\"index\":true},{\"key\":\"module\",\"value\":\"storage\",\"index\":true}]},{\"type\":\"greenfield.storage.EventSetTag\",\"attributes\":[{\"key\":\"resource\",\"value\":\"\\\"grn:g:0x2412c55D1b613C87E37aF2172b05343551D19e98:g001-02\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[{\\\"key\\\":\\\"key1\\\",\\\"value\\\":\\\"value1\\\"},{\\\"key\\\":\\\"key2\\\",\\\"value\\\":\\\"value2\\\"}]}\",\"index\":true}]}]}]}"
},
{
"name": "create group without tags",
"block": "{\"block\":{\"header\":{\"height\":\"57\",\"time\":\"2023-08-24T17:09:07.49508671Z\"},\"data\":{\"txs\":[\"CvoBCvcBCiMvZ3JlZW5maWVsZC5zdG9yYWdlLk1zZ0NyZWF0ZUJ1Y2tldBLPAQoqMHg4NjljNDBkNDk2YTc5NjM0QkVmNDNhZjhFRWI4MTdGMmI4QTFDQjJjEihmdWxsLW5vZGUtdjEtYWNjMDAwMDAwMDA3Mi1idWMwMDAwMDAwMDAwGAIqKjB4MzM0NEVFYTlGQkQ3ZERBMWM3MWJhZTgzYkY3MjNDODVEOTRlODY1OTJJCPCeDBARGkF1QxEUgocG3uzLeeSImESkzZrlsD9RznBjdMSkQsbRKmAfhTBiV5VDpSpwCzOotaZcCcvH7+i8uGQ/hDw7g28EARJ2ClgKTQomL2Nvc21vcy5jcnlwdG8uZXRoLmV0aHNlY3AyNTZrMS5QdWJLZXkSIwohAjPGjCB4AldgyL0SXau5XO9VPOWF0Am7LH3CMogJhcwxEgUKAwjIBRg0EhoKFQoDQk5CEg4xMjAwMDAwMDAwMDAwMBDgEhpBJYtn8jCJvroTA72YUcY0CdkJlVth7xJvt+voqLZi+MlE845j+GX1tvXCpyCPQjcQHs7pibXQPImBrupKxENk5QA=\"]}}}",
- "block_results": "{\"height\":\"57\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateGroup\",\"attributes\":[{\"key\":\"extra\",\"value\":\"\\\"\\\"\",\"index\":true},{\"key\":\"group_id\",\"value\":\"\\\"4\\\"\",\"index\":true},{\"key\":\"group_name\",\"value\":\"\\\"g001-04\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true},{\"key\":\"tags\",\"value\":\"{\\\"tags\\\":[]}\",\"index\":true}]}]}]}"
+ "block_results": "{\"height\":\"57\",\"txs_results\":[{\"events\":[{\"type\":\"greenfield.storage.EventCreateGroup\",\"attributes\":[{\"key\":\"extra\",\"value\":\"\\\"\\\"\",\"index\":true},{\"key\":\"group_id\",\"value\":\"\\\"4\\\"\",\"index\":true},{\"key\":\"group_name\",\"value\":\"\\\"g001-04\\\"\",\"index\":true},{\"key\":\"owner\",\"value\":\"\\\"0x2412c55D1b613C87E37aF2172b05343551D19e98\\\"\",\"index\":true},{\"key\":\"source_type\",\"value\":\"\\\"SOURCE_TYPE_ORIGIN\\\"\",\"index\":true}]}]}]}"
},
{
"name": "set tags for the group created in block 57",
diff --git a/modular/gater/metadata_handler_test.go b/modular/gater/metadata_handler_test.go
index 7a7de7f30..efbf518fa 100644
--- a/modular/gater/metadata_handler_test.go
+++ b/modular/gater/metadata_handler_test.go
@@ -807,14 +807,16 @@ func TestGateModular_ListObjectsByIDsHandler(t *testing.T) {
return g
},
request: func() *http.Request {
- ids := "1"
+ ids := "0,4,5,6"
path := fmt.Sprintf("%s%s/?%s&ids=%s", scheme, testDomain, ListObjectsByIDsQuery, ids)
req := httptest.NewRequest(http.MethodGet, path, strings.NewReader(""))
return req
},
wantedResultFn: func(body string) bool {
- assert.Equal(t, "00xF72aDa8130f934887755492879496b026665FbAB0xF72aDa8130f934887755492879496b026665FbABmock-bucket-namemock-object-name00148027643application/octet-stream1699781700100tPsLBcgLxRVKTRJCeYw5FVj0jjqPsqFnbDCr77pf7RA=7YqCbwK/qC+zaAoJvd971fuJCE0OVQ9ky8bgomUkmRI=i59qS3vgvN8QIcNKOJggtN4JsZRLYt1ugeGDtP6x7Sk=tBBu4BPpANbc12SO5TVeQ64DtKwl0F2inE29H9jAw54=vOw+loeUIXXPEvfYNFmnElTIxj/b0dEEBBF1YbKOoEI=e0nSN4a5u3EDPaAqemGDZ5gYJ0l6NUjtalmj/BH2uWE=rRm6iKPMc8gZbw1WKKF2kPXveU2VFEh2izs9e8ovfwk=0x0000000000000000000000000000000000000000000000000000000000000000false128004800x03AbbEe8E426C9887A8ae3C34602AbCA42aeDFa00x491227c644bc89f5a058d92167c00d452c63a1dd8d5776c81617a41ec76fcc8c0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e45false0060xF72aDa8130f934887755492879496b026665FbAB0xF72aDa8130f934887755492879496b026665FbABmock-bucket-namemock-object-name66148027643application/octet-stream16997817001000x0000000000000000000000000000000000000000000000000000000000000000false128004800x03AbbEe8E426C9887A8ae3C34602AbCA42aeDFa00x491227c644bc89f5a058d92167c00d452c63a1dd8d5776c81617a41ec76fcc8c0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e",
- body)
+ assert.Contains(t, body, "00xF72aDa8130f934887755492879496b026665FbAB0xF72aDa8130f934887755492879496b026665FbABmock-bucket-namemock-object-name00148027643application/octet-stream1699781700100tPsLBcgLxRVKTRJCeYw5FVj0jjqPsqFnbDCr77pf7RA=7YqCbwK/qC+zaAoJvd971fuJCE0OVQ9ky8bgomUkmRI=i59qS3vgvN8QIcNKOJggtN4JsZRLYt1ugeGDtP6x7Sk=tBBu4BPpANbc12SO5TVeQ64DtKwl0F2inE29H9jAw54=vOw+loeUIXXPEvfYNFmnElTIxj/b0dEEBBF1YbKOoEI=e0nSN4a5u3EDPaAqemGDZ5gYJ0l6NUjtalmj/BH2uWE=rRm6iKPMc8gZbw1WKKF2kPXveU2VFEh2izs9e8ovfwk=0x0000000000000000000000000000000000000000000000000000000000000000false128004800x03AbbEe8E426C9887A8ae3C34602AbCA42aeDFa00x491227c644bc89f5a058d92167c00d452c63a1dd8d5776c81617a41ec76fcc8c0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e")
+ assert.Contains(t, body, "4")
+ assert.Contains(t, body, "5false00")
+ assert.Contains(t, body, "60xF72aDa8130f934887755492879496b026665FbAB0xF72aDa8130f934887755492879496b026665FbABmock-bucket-namemock-object-name66148027643application/octet-stream16997817001000x0000000000000000000000000000000000000000000000000000000000000000false128004800x03AbbEe8E426C9887A8ae3C34602AbCA42aeDFa00x491227c644bc89f5a058d92167c00d452c63a1dd8d5776c81617a41ec76fcc8c0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e0x238737f109a40c675e1bef5ebfb2adef2cac0a723ee20fbd752e78efbf3d579e")
return true
},
},
diff --git a/test/e2e/spworkflow/e2e_test.sh b/test/e2e/spworkflow/e2e_test.sh
index 274f5912e..5d0c6d601 100644
--- a/test/e2e/spworkflow/e2e_test.sh
+++ b/test/e2e/spworkflow/e2e_test.sh
@@ -6,11 +6,11 @@ export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
workspace=${GITHUB_WORKSPACE}
# some constants
-GREENFIELD_TAG="develop"
+GREENFIELD_TAG="master"
# greenfield cmd tag name: v0.1.0
-GREENFIELD_CMD_TAG="feat-add-tags"
+GREENFIELD_CMD_TAG="feat-adapt-tags"
# greenfield go sdk tag name: v1.0.0
-GREENFIELD_GO_SDK_TAG="feat-add-tags"
+GREENFIELD_GO_SDK_TAG="feat-adapt-tags"
MYSQL_USER="root"
MYSQL_PASSWORD="root"
MYSQL_ADDRESS="127.0.0.1:3306"