-
Notifications
You must be signed in to change notification settings - Fork 5
test: add deployment functional test #73
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
Open
cloud-j-luna
wants to merge
51
commits into
main
Choose a base branch
from
luna/functional-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
02de460
test: add deployment functional test
cloud-j-luna 5ee6d19
chore: remove unecessary docs
cloud-j-luna fe708a8
doc: adds provider authentication details to README (#72)
stalniy d96028b
test: improve reference deployment tests
cloud-j-luna 4694df3
test: add serialization test
cloud-j-luna c39fb87
test: add create deployment test
cloud-j-luna 5cbe39c
chore: improve docs and refactor
cloud-j-luna 8fd097c
chore: progress
cloud-j-luna b05d638
chore: progress
cloud-j-luna 84f8339
chore: progress
cloud-j-luna 09c0432
fix: ensure nodejs can import exported files (#86)
stalniy e3f1921
refactor: compiles json-schema validator and optimized cjs build (#92)
stalniy 94bbac8
chore: progress
cloud-j-luna 9682e35
chore: progress
cloud-j-luna c1f4b41
chore: progress
cloud-j-luna e93c419
chore: progress
cloud-j-luna c785c35
chore: progress
cloud-j-luna b652b50
test: remove conditionals
cloud-j-luna 65c1823
test: remove duplicate
cloud-j-luna a6ddca0
Merge branch 'main' into luna/functional-tests
cloud-j-luna c0e49cb
test: remove transaction locking mechanism
cloud-j-luna 148d772
Merge branch 'main' into luna/functional-tests
cloud-j-luna c3eb90a
fix: update testnet TX_RPC_URL
cloud-j-luna 1f90343
Merge branch 'main' into luna/functional-tests
cloud-j-luna 38a0aa9
Merge branch 'main' of github.com:akash-network/chain-sdk into luna/fβ¦
vertex451 1100583
mock server tests
vertex451 61125ec
buf from makefile
vertex451 edd27dd
checkversion removed
vertex451 836b45c
mockTxServer
vertex451 c260793
iterate
vertex451 bd136a8
Merge branch 'main' of github.com:akash-network/chain-sdk into luna/fβ¦
vertex451 b7c7b0e
removed polyfill
vertex451 536493d
removed silent fail
vertex451 58d578a
iterate
vertex451 0a33fbf
removed fixtures generation
vertex451 f7bd889
iterate
vertex451 21d78f3
iterate
vertex451 35a2be5
added price encodign-decodign
vertex451 d3fdbdf
iterate
vertex451 9d099d8
iterate
vertex451 c796628
iterate
vertex451 e6c4010
iterate
vertex451 a9ba718
iterate
vertex451 33d48cd
iterate
vertex451 d9f024f
removed overnormalization
vertex451 a62a553
iterate
vertex451 7485579
iterate
vertex451 66ac9fb
chore: pulled main
vertex451 46c5550
chore: removed unsued code and optimized tests
vertex451 9d3839e
chore: refator
vertex451 454f943
chore: pulled main
vertex451 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,36 @@ | ||
| package main | ||
|
|
||
| import ( | ||
| "flag" | ||
| "fmt" | ||
| "log" | ||
| "os" | ||
| "os/signal" | ||
| "syscall" | ||
|
|
||
| "pkg.akt.dev/go/testutil/mock" | ||
| ) | ||
|
|
||
| func main() { | ||
| flag.Parse() | ||
|
|
||
| server, err := mock.NewServer(mock.Config{}) | ||
| if err != nil { | ||
| log.Fatalf("Failed to create server: %v", err) | ||
| } | ||
|
|
||
| if err := server.Start(); err != nil { | ||
| log.Fatalf("Failed to start server: %v", err) | ||
| } | ||
|
|
||
| fmt.Fprintf(os.Stdout, "gateway: %s\n", server.GatewayURL()) | ||
| fmt.Fprintf(os.Stdout, "grpc: %s\n", server.GRPCAddr()) | ||
|
|
||
| sigChan := make(chan os.Signal, 1) | ||
| signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM) | ||
| <-sigChan | ||
|
|
||
| if err := server.Stop(); err != nil { | ||
| log.Fatalf("Error stopping server: %v", err) | ||
| } | ||
| } |
This file contains hidden or 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,36 @@ | ||
| package query | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
| sdkquery "github.com/cosmos/cosmos-sdk/types/query" | ||
| "google.golang.org/grpc/codes" | ||
| "google.golang.org/grpc/status" | ||
|
|
||
| dv1beta4 "pkg.akt.dev/go/node/deployment/v1beta4" | ||
| ) | ||
|
|
||
| type DeploymentQuery struct{} | ||
|
|
||
| func NewDeploymentQuery() *DeploymentQuery { | ||
| return &DeploymentQuery{} | ||
| } | ||
|
|
||
| func (q *DeploymentQuery) Deployments(ctx context.Context, req *dv1beta4.QueryDeploymentsRequest) (*dv1beta4.QueryDeploymentsResponse, error) { | ||
| return &dv1beta4.QueryDeploymentsResponse{ | ||
| Deployments: dv1beta4.DeploymentResponses{}, | ||
| Pagination: &sdkquery.PageResponse{Total: 0}, | ||
| }, nil | ||
| } | ||
|
|
||
| func (q *DeploymentQuery) Deployment(ctx context.Context, req *dv1beta4.QueryDeploymentRequest) (*dv1beta4.QueryDeploymentResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Deployment not implemented") | ||
| } | ||
|
|
||
| func (q *DeploymentQuery) Group(ctx context.Context, req *dv1beta4.QueryGroupRequest) (*dv1beta4.QueryGroupResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Group not implemented") | ||
| } | ||
|
|
||
| func (q *DeploymentQuery) Params(ctx context.Context, req *dv1beta4.QueryParamsRequest) (*dv1beta4.QueryParamsResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") | ||
| } |
This file contains hidden or 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,51 @@ | ||
| package query | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
| "github.com/cosmos/cosmos-sdk/types/query" | ||
| "google.golang.org/grpc/codes" | ||
| "google.golang.org/grpc/status" | ||
|
|
||
| mv1beta5 "pkg.akt.dev/go/node/market/v1beta5" | ||
| ) | ||
|
|
||
| type MarketQuery struct{} | ||
|
|
||
| func NewMarketQuery() *MarketQuery { | ||
| return &MarketQuery{} | ||
| } | ||
|
|
||
| func (q *MarketQuery) Leases(ctx context.Context, req *mv1beta5.QueryLeasesRequest) (*mv1beta5.QueryLeasesResponse, error) { | ||
| return &mv1beta5.QueryLeasesResponse{ | ||
| Leases: []mv1beta5.QueryLeaseResponse{}, | ||
| Pagination: &query.PageResponse{Total: 0}, | ||
| }, nil | ||
| } | ||
|
|
||
| func (q *MarketQuery) Lease(ctx context.Context, req *mv1beta5.QueryLeaseRequest) (*mv1beta5.QueryLeaseResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Lease not implemented") | ||
| } | ||
|
|
||
| func (q *MarketQuery) Bids(ctx context.Context, req *mv1beta5.QueryBidsRequest) (*mv1beta5.QueryBidsResponse, error) { | ||
| return &mv1beta5.QueryBidsResponse{ | ||
| Bids: []mv1beta5.QueryBidResponse{}, | ||
| Pagination: &query.PageResponse{Total: 0}, | ||
| }, nil | ||
| } | ||
|
|
||
| func (q *MarketQuery) Bid(ctx context.Context, req *mv1beta5.QueryBidRequest) (*mv1beta5.QueryBidResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Bid not implemented") | ||
| } | ||
|
|
||
| func (q *MarketQuery) Orders(ctx context.Context, req *mv1beta5.QueryOrdersRequest) (*mv1beta5.QueryOrdersResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Orders not implemented") | ||
| } | ||
|
|
||
| func (q *MarketQuery) Order(ctx context.Context, req *mv1beta5.QueryOrderRequest) (*mv1beta5.QueryOrderResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Order not implemented") | ||
| } | ||
|
|
||
| func (q *MarketQuery) Params(ctx context.Context, req *mv1beta5.QueryParamsRequest) (*mv1beta5.QueryParamsResponse, error) { | ||
| return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue(blocking): we have
make test-coveragewhich callsnpm run test:covwhich runs unit and functional tests. Very likely at that stage functional tests will failThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional tests are intentionally excluded from coverage (jest.config.ts line 25) and from the unit test run (package.json --selectProjects unit).
So no issue.