-
Notifications
You must be signed in to change notification settings - Fork 142
feat: integration tests setup #46
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
Draft
Romsters
wants to merge
146
commits into
main
Choose a base branch
from
integration-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.
Draft
Changes from 143 commits
Commits
Show all changes
146 commits
Select commit
Hold shift + click to select a range
fcde284
feat: integration tests setup (#45)
Romsters ee9545a
Merge branch 'main' into integration-tests
Romsters 8ac53d9
test: add an .env.example file with description to integration-tests
pcheremu deb9667
test: adding a default action for hardhat
pcheremu 19021be
test: fix path to env
pcheremu 8040412
test: exclude file existence check
pcheremu 3a9d961
test: create a fallback case for a default wallet
pcheremu 6e62c51
test: refactoring
pcheremu 5e62c42
Merge pull request #58 from matter-labs/QA-451-add-envexample-logic
pcheremu 5dc4623
test: restructure test solution
abilevych 1c6074e
test: the tokens API-related suite re-structuring
abilevych bacb018
test: the address API-related suite re-structuring
abilevych 38723b1
test: the transaction API-related suite re-structuring
abilevych f18702f
chore: run lint
abilevych d2ea0e9
test: re-structure test suites for batches, stats, blocks endpoints
abilevych 1730a71
chore: group the SDK-related test suites as pre-requisites
abilevych ca9e597
chore: hooks / aligning tests suites
abilevych 6ed2427
chore: implemented a global hook for jest
abilevych cb7a237
chore: local hooks for the addresses endpoint
abilevych 0816c80
chore: local hooks for the tokens endpoint
abilevych 3aa0f34
chore: local hooks for the transaction endpoint
abilevych e848a0f
chore: add global hooks
abilevych 4064634
chore: fix after lint
abilevych 88cf5b3
chore: changed timeouts in addresses api suite
abilevych e1ecfa4
chore: optimized addresses/transactions test suites
abilevych 96bce37
test: fix git runner and test issues
pcheremu cf18598
test: test with a cache
pcheremu d15df2c
test: test with a node
pcheremu 43ba846
test: test with a cleaned cache in advance
pcheremu 9c990c0
test: test with a node
pcheremu 3b0693e
test: test with a cache
pcheremu 19e5251
test: refactoring
pcheremu 8831d1b
test: refactoring
pcheremu 427d64a
test: remove an issue workaround for husky
pcheremu 37765e0
Merge pull request #83 from matter-labs/QA-522-fix-issues-ci
abilevych f7ddfe6
Merge pull request #67 from matter-labs/QA-487-re-structure-tests
abilevych dfbd5d8
test: covering Contract API and Logs API endpoints
amelnytskyi 8b057b1
test: covering Contract API and Logs API endpoints
amelnytskyi 1bc3563
test: covering Contract API and Logs API endpoints
amelnytskyi 21737ce
Merge pull request #92 from matter-labs/QA-535-cover-contract-api
abilevych 3a79075
Merge branch 'main' into QA-540-update-the-integration-test-branch
abilevych 74383a7
chore: update the package-lock.json
abilevych daf1887
test: fix test for an execution on a CI
abilevych 7fe2e5a
Merge pull request #96 from matter-labs/QA-540-update-the-integration…
abilevych f9d76f8
feat: integration tests setup (#45)
Romsters e112da4
test: add an .env.example file with description to integration-tests
pcheremu 7e8ef57
test: adding a default action for hardhat
pcheremu e58f682
test: fix path to env
pcheremu e049159
test: exclude file existence check
pcheremu 0646894
test: create a fallback case for a default wallet
pcheremu b7b433b
test: refactoring
pcheremu bc671e2
test: restructure test solution
abilevych 7b1e6bc
test: the tokens API-related suite re-structuring
abilevych 88042cf
test: the address API-related suite re-structuring
abilevych 71050d3
test: the transaction API-related suite re-structuring
abilevych defde5a
chore: run lint
abilevych 3ea13f4
test: re-structure test suites for batches, stats, blocks endpoints
abilevych 44a1d1e
chore: group the SDK-related test suites as pre-requisites
abilevych de0366e
chore: hooks / aligning tests suites
abilevych eb3660a
chore: implemented a global hook for jest
abilevych d71dec4
chore: local hooks for the addresses endpoint
abilevych fa6c9a6
chore: local hooks for the tokens endpoint
abilevych 5817ed0
chore: local hooks for the transaction endpoint
abilevych 2482504
chore: add global hooks
abilevych a16183e
chore: fix after lint
abilevych 5f194e3
chore: changed timeouts in addresses api suite
abilevych 0040e2d
chore: optimized addresses/transactions test suites
abilevych 64b9813
test: test with a cache
pcheremu eabd0b0
test: test with a cleaned cache in advance
pcheremu b121b73
test: test with a cache
pcheremu 23e8230
test: refactoring
pcheremu 08c70e8
test: remove an issue workaround for husky
pcheremu fd68f4b
test: covering Contract API and Logs API endpoints
amelnytskyi 359399d
test: covering Contract API and Logs API endpoints
amelnytskyi ea94965
test: covering Contract API and Logs API endpoints
amelnytskyi 5150799
chore: update the package-lock.json
abilevych 21ea321
Merge branch 'integration-tests' into QA-573-rebase2-be-tests
pcheremu c3ade7e
Refactoring of app-e2e.yml
pcheremu ecea709
Small refactoring artifactsSet3.feature
pcheremu 7d93728
Merge pull request #125 from matter-labs/QA-573-rebase2-be-tests
abilevych e30f4b7
test: prepare run api tests on ci
pcheremu 3355947
test: refactoring
pcheremu 31887d0
test: update name in integration-tests-api.yml
pcheremu 533b4ed
Merge pull request #127 from matter-labs/QA-414-ci-run-on-fixed-branch
abilevych d0fd386
test: initial commit with tests
pcheremu c4c1e61
test: eslint refactoring
pcheremu 4b9e9ac
test: updated contract hash for ui test
pcheremu e0b9368
test: refactoring
pcheremu 9136685
test: refactoring
pcheremu 6255d26
test: fix unstable api test
pcheremu f9f98a3
test: fix git ignore output folders
pcheremu 3a0f377
test: refactoring
pcheremu 07e50cf
test: refactoring test name
pcheremu e8d4697
test: refactoring test name
pcheremu 9a51b1f
tests: refactoring test names
pcheremu 1fbd645
test: refactoring eslint
pcheremu 2d90a71
test: refactoring names
pcheremu 05a5367
test: fix api tests
pcheremu f0fa0f5
test: refactoring
pcheremu 639ff5e
test: refactoring
pcheremu d26ca9d
test: refactoring
pcheremu a7cf0d1
test: refactoring after rebase
pcheremu 6ef5983
test: refactoring eslint
pcheremu 43e7a17
test: fix test names add account test to the workflow
pcheremu 3a546fc
test: fix test names add account test to the workflow
pcheremu 5a2e7ba
Merge branch 'QA-446-replacefixupdate2-api-tests' into QA-577-fix-uns…
abilevych 22ec02a
test: fix eslint
pcheremu 6c5a521
test: fix redirection to documentation
pcheremu 50ddbac
test: fix redirection to documentation
pcheremu 792fc08
test: fix links
pcheremu 4a65808
Merge pull request #148 from matter-labs/QA-577-fix-unstable-tests
abilevych 4a8abdd
test: refactoring
pcheremu 8a14d5e
test: fix portal url
pcheremu 3194485
Update packages/integration-tests/tests/api/accounts.test.ts
pcheremu 86baebb
chore: update the Blocks suite name
abilevych c975ef7
test: fix names in tests
pcheremu 610df0d
test: refactoring
pcheremu 8a57793
Merge pull request #147 from matter-labs/QA-446-replacefixupdate2-api…
abilevych 93dbc2c
chore: api retry logic for tests
abilevych d09ef6e
fix: lint issues
abilevych b3f8098
chore: changed timeouts
abilevych 63f77d2
chore: integration api tests refactoring
abilevych 224a338
chore: excluded unstable test
abilevych 276ab27
chore: jest retry option, fix lint
abilevych 6ef6d44
chore: refactoring test actualization after rebase
abilevych 3f21529
fix: lint issue
abilevych ee53339
chore: exclude gating test
abilevych 806dddb
chore: excluded unstable tests
abilevych c4bdcae
chore: updated retry-logic for integration api tests
abilevych 8d374d5
fix: integration api tests for the CI run
abilevych c6159a3
chore: refactoring leftovers in the test solution
abilevych 54005cf
chore: optimized integration API tests
abilevych c411d58
chore: refactored jest config
abilevych d23bd9b
chore: refactoring test retry method
abilevych eb0e8b6
Merge pull request #149 from matter-labs/QA-582-retry-wrapper-over-AP…
abilevych 2a4f726
test: covering tokens API endpoints tc1803 (#155)
amelnytskyi 91641ee
test: fix readme docker command (#158)
pcheremu a57a9ce
test: covering Batches API and partially covered Transactions (#156)
amelnytskyi c9482df
feat: new automation tests for accounts API (#163)
olehbairak d8daa3d
test: fixing gating transactions tests (#162)
amelnytskyi 5708ef8
test: rebase integration tests to main (#167)
pcheremu a42afca
test: resolve conflicts
pcheremu 36380a0
test: fix a new line typos
pcheremu ae4a4d4
test: remove a version from docker compose
pcheremu d186114
test: roll back the version to the docker compose file
pcheremu 946b0f6
fix: remove docker version (#169)
vasyl-ivanchuk 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| **/dist/ | ||
| **.env | ||
| **.env |
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,61 @@ | ||
| name: Integration test - API | ||
| on: pull_request | ||
|
|
||
| jobs: | ||
| runTests: | ||
| timeout-minutes: 30 | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| checks: write | ||
| strategy: | ||
| matrix: | ||
| node-version: ['lts/*'] # 18.17.1 or lts/* | ||
| test-pattern: | ||
| - accounts.test.ts | ||
| - addresses.test.ts | ||
| - batches.test.ts | ||
| - blocks.test.ts | ||
| - contracts.test.ts | ||
| - logs.test.ts | ||
| - stats.test.ts | ||
| - tokens.test.ts | ||
| - transactions.test.ts | ||
| name: 'API test set: ${{ matrix.test-pattern}} / Node: ${{ matrix.node-version}}' | ||
| steps: | ||
| - name: Checkout with Submodule | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: npm | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| npm ci --no-audit | ||
| npx playwright install --with-deps chromium | ||
| - name: Log in to Docker Hub | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USER }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Start docker containers | ||
| run: | | ||
| docker-compose -f "docker-compose.yaml" up -d --build | ||
| - name: List running containers | ||
| run: docker ps | ||
|
|
||
| - name: API tests run (parallel) | ||
| run: | | ||
| cd packages/integration-tests | ||
| npx jest --verbose --testPathPattern=${{ matrix.test-pattern }} | ||
| - name: Stop containers | ||
| if: always() | ||
| run: | | ||
| docker-compose -f "docker-compose.yaml" down |
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "typescript.tsdk": "node_modules/typescript/lib" | ||
| } | ||
| "typescript.tsdk": "node_modules/typescript/lib", | ||
| "editor.tabSize": 2 | ||
| } |
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
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.
Uh oh!
There was an error while loading. Please reload this page.