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

fix: upgrade e2e ci greenfield version to v0.2.0 #418

Merged
merged 1 commit into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- fix-release*

env:
GreenfieldTag: develop_v0.47_latest
GreenfieldTag: v0.2.0
GreenfieldIntegrationTestBranch: adapt-greenfield-develop_v0.47_latest-develop
GOPRIVATE: github.com/bnb-chain
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions service/gateway/object_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"net/url"

"github.com/bnb-chain/greenfield-storage-provider/util"
"github.com/bnb-chain/greenfield/types/s3util"
storagetypes "github.com/bnb-chain/greenfield/x/storage/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -19,6 +18,7 @@ import (
"github.com/bnb-chain/greenfield-storage-provider/service/downloader/types"
metatypes "github.com/bnb-chain/greenfield-storage-provider/service/metadata/types"
uploadertypes "github.com/bnb-chain/greenfield-storage-provider/service/uploader/types"
"github.com/bnb-chain/greenfield-storage-provider/util"
)

// getObjectHandler handles the get object request
Expand Down Expand Up @@ -343,7 +343,7 @@ func (gateway *Gateway) getObjectByUniversalEndpointHandler(w http.ResponseWrite

bucketPrimarySpAddress := getBucketInfoRes.GetBucket().GetBucketInfo().GetPrimarySpAddress()

//if bucket not in the current sp, 302 redirect to the sp that contains the bucket
// if bucket not in the current sp, 302 redirect to the sp that contains the bucket
if bucketPrimarySpAddress != gateway.config.SpOperatorAddress {
log.Debugw("primary sp address not matched ",
"bucketPrimarySpAddress", bucketPrimarySpAddress, "gateway.config.SpOperatorAddress", gateway.config.SpOperatorAddress,
Expand Down