Skip to content
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
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ lcov.info
/docker/parity/network/
**/*/tests/fixtures/ipfs_folder/random.txt

/tests/integration-tests/**/build
/tests/integration-tests/**/generated
/tests/integration-tests/**/node_modules
/tests/integration-tests/**/yarn.lock
/tests/integration-tests/**/yarn-error.log
/tests/**/build
/tests/**/generated
/tests/**/node_modules
/tests/**/yarn-error.log

# Built solidity contracts.
/tests/integration-tests/**/bin
/tests/integration-tests/**/truffle_output
/tests/**/bin
/tests/**/truffle_output
17 changes: 5 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ version.workspace = true
edition.workspace = true

[dependencies]
port_check = "0.1.5"
anyhow = "1.0"
assert-json-diff = "2.0.2"
async-stream = "0.3.3"
bollard = "0.10"
futures = { version = "0.3", features = ["compat"] }
graph = { path = "../graph" }
tokio = { version = "1.16.1", features = ["rt", "macros", "process"] }
graph-chain-ethereum = { path = "../chain/ethereum" }
async-stream = "0.3.3"
graph-node = { path = "../node" }
graph-core = { path = "../core" }
graph-mock = { path = "../mock" }
graph-graphql = { path = "../graphql" }
graph-store-postgres = { path = "../store/postgres" }
graph-runtime-wasm = { path = "../runtime/wasm" }
graph-server-index-node = { path = "../server/index-node" }
slog = { version = "2.7.0", features = ["release_max_level_trace", "max_level_trace"] }
graphql-parser = "0.4.0"
hex = "0.4.3"
serde_yaml = "0.8"
hyper = "0.14"
serde = "1.0"
assert-json-diff = "2.0.2"
serde_yaml = "0.8"
slog = { version = "2.7.0", features = ["release_max_level_trace", "max_level_trace"] }
tokio = { version = "1.16.1", features = ["rt", "macros", "process"] }
uuid = { version = "1.2.2", features = ["v4"] }

[dev-dependencies]
bollard = "0.10"
anyhow = "1.0.69"
bollard = "0.10"
lazy_static = "1.4.0"
tokio-stream = "0.1"
serde_yaml = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/api-version-v0-0-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "api-version-v0-0-4",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/api-version-v0-0-4 --node $GRAPH_NODE_ADMIN_URI",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests/api-version-v0-0-4/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ require("babel-register");
require("babel-polyfill");

module.exports = {
contracts_directory: "../common",
migrations_directory: "../common",
contracts_directory: "../../common",
migrations_directory: "../../common",
contracts_build_directory: "./truffle_output",
networks: {
test: {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/ganache-reverts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ganache-reverts",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/ganache-reverts --node $GRAPH_NODE_ADMIN_URI",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/host-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "host-exports",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/host-exports --node $GRAPH_NODE_ADMIN_URI",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests/host-exports/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ require("babel-register");
require("babel-polyfill");

module.exports = {
contracts_directory: "../common",
migrations_directory: "../common",
contracts_directory: "../../common",
migrations_directory: "../../common",
contracts_build_directory: "./truffle_output",
networks: {
test: {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/non-fatal-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "non-fatal-errors",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/non-fatal-errors --node $GRAPH_NODE_ADMIN_URI",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests/non-fatal-errors/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ require("babel-register");
require("babel-polyfill");

module.exports = {
contracts_directory: "../common",
migrations_directory: "../common",
contracts_directory: "../../common",
migrations_directory: "../../common",
contracts_build_directory: "./truffle_output",
networks: {
test: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "overloaded-contract-functions",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/overloaded-contract-functions --node $GRAPH_NODE_ADMIN_URI",
Expand Down
8 changes: 1 addition & 7 deletions tests/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
"private": true,
"workspaces": [
"api-version-v0-0-4",
"data-source-revert",
"data-source-revert2",
"fatal-error",
"ganache-reverts",
"host-exports",
"non-fatal-errors",
"overloaded-contract-functions",
"poi-for-failed-subgraph",
"remove-then-update",
"typename",
"value-roundtrip",
"dynamic-data-source",
"file-data-sources"
"value-roundtrip"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "poi-for-failed-subgraph",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/poi-for-failed-subgraph --node $GRAPH_NODE_ADMIN_URI",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests/poi-for-failed-subgraph/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ require("babel-register");
require("babel-polyfill");

module.exports = {
contracts_directory: "../common",
migrations_directory: "../common",
contracts_directory: "../../common",
migrations_directory: "../../common",
contracts_build_directory: "./truffle_output",
networks: {
test: {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/remove-then-update/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "remove-then-update",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/remove-then-update --node $GRAPH_NODE_ADMIN_URI",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests/remove-then-update/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ require("babel-register");
require("babel-polyfill");

module.exports = {
contracts_directory: "../common",
migrations_directory: "../common",
contracts_directory: "../../common",
migrations_directory: "../../common",
contracts_build_directory: "./truffle_output",
networks: {
test: {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/value-roundtrip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "value-roundtrip",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/value-roundtrip --node $GRAPH_NODE_ADMIN_URI",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests/value-roundtrip/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ require("babel-register");
require("babel-polyfill");

module.exports = {
contracts_directory: "../common",
migrations_directory: "../common",
contracts_directory: "../../common",
migrations_directory: "../../common",
contracts_build_directory: "./truffle_output",
networks: {
test: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dynamic-data-source",
"version": "0.1.0",
"scripts": {
"build-contracts": "../common/build-contracts.sh",
"build-contracts": "../../common/build-contracts.sh",
"codegen": "graph codegen --skip-migrations",
"test": "yarn build-contracts && truffle test --compile-none --network test",
"create:test": "graph create test/dynamic-data-source --node $GRAPH_NODE_ADMIN_URI",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"babel-register": "^6.26.0",
"gluegun": "^4.6.1"
}
}
}
11 changes: 11 additions & 0 deletions tests/runner-tests/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"private": true,
"workspaces": [
"data-source-revert",
"data-source-revert2",
"dynamic-data-source",
"fatal-error",
"file-data-sources",
"typename"
]
}
Loading