From 6b640d5bb1bb6a393f4a400556dd47fc0c9cae85 Mon Sep 17 00:00:00 2001 From: philipliu Date: Mon, 17 Mar 2025 12:45:57 -0400 Subject: [PATCH 1/2] Point test to dev instance --- .../workflows/integration.anchorPlatformTest.yml | 14 -------------- .../test/integration/README.md | 11 +++-------- .../test/integration/anchorplatform.test.ts | 2 +- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/integration.anchorPlatformTest.yml b/.github/workflows/integration.anchorPlatformTest.yml index 1fe53a2e..d07a95b0 100644 --- a/.github/workflows/integration.anchorPlatformTest.yml +++ b/.github/workflows/integration.anchorPlatformTest.yml @@ -5,20 +5,6 @@ jobs: name: anchor platform test runs-on: ubuntu-latest steps: - - name: Checkout Java Anchor SDK - uses: actions/checkout@v2 - with: - repository: stellar/java-stellar-anchor-sdk - - name: Build docker - run: - docker build --build-arg BASE_IMAGE=gradle:7.6.4-jdk17 -t - anchor-platform:local ./ - - name: Run docker - run: - docker compose -f - service-runner/src/main/resources/docker-compose.yaml up -d - - name: Wait for docker to be ready - run: sleep 300 && curl http://localhost:8080/.well-known/stellar.toml - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: diff --git a/@stellar/typescript-wallet-sdk/test/integration/README.md b/@stellar/typescript-wallet-sdk/test/integration/README.md index fcf78d0f..9bc2a064 100644 --- a/@stellar/typescript-wallet-sdk/test/integration/README.md +++ b/@stellar/typescript-wallet-sdk/test/integration/README.md @@ -28,11 +28,6 @@ against. ## To run tests locally: -- follow the steps defined in the - (.github/workflows/integration.anchorPlatformTest.yml)[https://github.com/stellar/typescript-wallet-sdk/blob/main/.github/workflows/integration.anchorPlatformTest.yml] - file locally - -1. Clone the java-stellar-anchor-sdk repo locally -2. Run the docker build command -3. Run the docker command -4. Run the anchorPlatform tests from this repo +``` +yarn test:anchorplatform:ci +``` diff --git a/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts b/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts index 1dca0989..36adca51 100644 --- a/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts +++ b/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts @@ -6,7 +6,7 @@ let wallet; let stellar; let anchor; let accountKp; -const anchorUrl = "http://localhost:8080"; +const anchorUrl = "https://anchor-sep-server-dev.stellar.org/"; describe("Anchor Platform Integration Tests", () => { beforeAll(async () => { From 15b63db2c0134034215dbf38d2cf65f0db00820c Mon Sep 17 00:00:00 2001 From: philipliu Date: Mon, 17 Mar 2025 16:19:08 -0400 Subject: [PATCH 2/2] Add `type` field to SEP-6 test --- .../test/integration/anchorplatform.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts b/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts index 36adca51..72a6556a 100644 --- a/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts +++ b/@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts @@ -69,6 +69,7 @@ describe("Anchor Platform Integration Tests", () => { params: { asset_code: "USDC", account: accountKp.publicKey, + type: "SEPA", }, }); expect(dResp.id).toBeTruthy();