forked from CosmWasm/wasmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: CosmWasm#17 Depends on: cosmos/cosmos-sdk#4470
- Loading branch information
Showing
13 changed files
with
765 additions
and
467 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,4 @@ dependency-graph.png | |
*.aux | ||
*.out | ||
*.synctex.gz | ||
contract_tests/* |
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,43 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"github.com/snikch/goodman/hooks" | ||
"github.com/snikch/goodman/transaction" | ||
) | ||
|
||
func main() { | ||
// This must be compiled beforehand and given to dredd as parameter, in the meantime the server should be running | ||
h := hooks.NewHooks() | ||
server := hooks.NewServer(hooks.NewHooksRunner(h)) | ||
h.BeforeAll(func(t []*transaction.Transaction) { | ||
fmt.Println("Sleep 5 seconds before all modification") | ||
}) | ||
h.BeforeEach(func(t *transaction.Transaction) { | ||
fmt.Println("before each modification") | ||
}) | ||
h.Before("/version > GET", func(t *transaction.Transaction) { | ||
fmt.Println("before version TEST") | ||
}) | ||
h.Before("/node_version > GET", func(t *transaction.Transaction) { | ||
fmt.Println("before node_version TEST") | ||
}) | ||
h.BeforeEachValidation(func(t *transaction.Transaction) { | ||
fmt.Println("before each validation modification") | ||
}) | ||
h.BeforeValidation("/node_version > GET", func(t *transaction.Transaction) { | ||
fmt.Println("before validation node_version TEST") | ||
}) | ||
h.After("/node_version > GET", func(t *transaction.Transaction) { | ||
fmt.Println("after node_version TEST") | ||
}) | ||
h.AfterEach(func(t *transaction.Transaction) { | ||
fmt.Println("after each modification") | ||
}) | ||
h.AfterAll(func(t []*transaction.Transaction) { | ||
fmt.Println("after all modification") | ||
}) | ||
server.Serve() | ||
defer server.Listener.Close() | ||
fmt.Print(h) | ||
} |
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
VERSION=v11.15.0 | ||
NODE_FULL=node-${VERSION}-linux-x64 | ||
|
||
mkdir -p ~/.local/bin | ||
mkdir -p ~/.local/node | ||
wget http://nodejs.org/dist/${VERSION}/${NODE_FULL}.tar.gz -O ~/.local/node/${NODE_FULL}.tar.gz | ||
tar -xzf ~/.local/node/${NODE_FULL}.tar.gz -C ~/.local/node/ | ||
ln -s ~/.local/node/${NODE_FULL}/bin/node ~/.local/bin/node | ||
ln -s ~/.local/node/${NODE_FULL}/bin/npm ~/.local/bin/npm | ||
export PATH=~/.local/bin:$PATH | ||
npm i -g dredd@11.0.1 | ||
ln -s ~/.local/node/${NODE_FULL}/bin/dredd ~/.local/bin/dredd |
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,33 @@ | ||
color: true | ||
dry-run: null | ||
hookfiles: build/contract_tests | ||
language: go | ||
require: null | ||
server: make run-lcd-contract-tests | ||
server-wait: 5 | ||
init: false | ||
custom: {} | ||
names: false | ||
only: [] | ||
reporter: [] | ||
output: [] | ||
header: [] | ||
sorted: false | ||
user: null | ||
inline-errors: false | ||
details: false | ||
method: [GET] | ||
loglevel: warning | ||
path: [] | ||
hooks-worker-timeout: 5000 | ||
hooks-worker-connect-timeout: 1500 | ||
hooks-worker-connect-retry: 500 | ||
hooks-worker-after-connect-wait: 100 | ||
hooks-worker-term-timeout: 5000 | ||
hooks-worker-term-retry: 500 | ||
hooks-worker-handler-host: 127.0.0.1 | ||
hooks-worker-handler-port: 61321 | ||
config: ./dredd.yml | ||
# This path accepts no variables | ||
blueprint: /tmp/contract_tests/swagger.yaml | ||
endpoint: 'http://127.0.0.1:8080' |
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
Oops, something went wrong.