4 Commits
Author SHA1 Message Date
Stefanie Doll 7a08b37ec3 Fix & convert e2e tests (#1167)
* split off rx-query tests

* Split off promise-rx tests

* use funded bob_stash for alex

* Fixed transfer e2e tests pt. 1

* wip era tx

* split derive promises

* delete outdated e2e metadata tests

* add randomAsHex test files

* WIP

* tslint

* add index file to e2e util

* rx-tx tests

* eslint types

* linting

* contract ? storage tests

* promise-contract tests

* fix lint errors after merge

* re-implement lost merge changes

* Only support recent ink versions

* child-storage tests

* Add e2e tests for storage input type

* All tests passing for rpc-core

* linting

* wrong file path

* remove old contract files & change folder name

* added larger random as hex files
2019-07-31 16:47:12 +02:00
Stefanie Doll 98cffea22d Add tests for latest polkadot metadata v6 encoding (#1159)
* Added tests for polkadot metadata v6 encoding

* added rpc access & ports to docker-compose
2019-07-22 22:58:21 +02:00
Stefanie Doll d57dca53f4 Reorganize test setup (#1132)
* Moved all e2e tests to 'api' folder

* Moved metadata test

* fix imports

* Add jest options for testing the different endpoint types separately

* Add check for empty test suites and return empt test to prevent jest from throwing an error

* Fix import paths

* Fix const tests for polkadot chains

* Update to latest Substrate 2.0 image

* Move contract files for e2e testing to e2e tesing folder

* reorder & fix promise query tests for all test nodes

* final fixes for promise query

* eslint fixes

* removed trailing space

* fix linting errors

* Address codeclimate "Function getWsEndpoints has a Cognitive Complexity of 7 (exceeds 5 allowed)."

* Fix contract ABI import paths

* linter endpoint types

* replace alice with alice_stash

* split off promise-queries file

* Remove apiType, smaller cleanups, added local to only: [] tests suites

* relative paths changed to `@polkadot` import

* moved contract wasm & abi's back to `api-contract`
2019-07-16 16:03:53 +02:00
Stefanie Doll eec4ca7f8d Add a docker compose file for e2e test environment (#1100)
* Add a docker compose file for e2e test environment

* Use new `test:all`

* Adjust ports

* small readme fixes

* renamed nodes

* Removed  user: ${CURRENT_UID}

* add websocket urls to jest config
2019-07-11 09:58:04 +02:00