Skip to content

Commit f3b7c7e

Browse files
authored
Point Anchor Platform integration tests to dev instance (#199)
* Point test to dev instance * Add `type` field to SEP-6 test
1 parent 9e78d57 commit f3b7c7e

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

.github/workflows/integration.anchorPlatformTest.yml

-14
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@ jobs:
55
name: anchor platform test
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Checkout Java Anchor SDK
9-
uses: actions/checkout@v2
10-
with:
11-
repository: stellar/java-stellar-anchor-sdk
12-
- name: Build docker
13-
run:
14-
docker build --build-arg BASE_IMAGE=gradle:7.6.4-jdk17 -t
15-
anchor-platform:local ./
16-
- name: Run docker
17-
run:
18-
docker compose -f
19-
service-runner/src/main/resources/docker-compose.yaml up -d
20-
- name: Wait for docker to be ready
21-
run: sleep 300 && curl http://localhost:8080/.well-known/stellar.toml
228
- uses: actions/checkout@v2
239
- uses: actions/setup-node@v2
2410
with:

@stellar/typescript-wallet-sdk/test/integration/README.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ against.
2828

2929
## To run tests locally:
3030

31-
- follow the steps defined in the
32-
(.github/workflows/integration.anchorPlatformTest.yml)[https://github.com/stellar/typescript-wallet-sdk/blob/main/.github/workflows/integration.anchorPlatformTest.yml]
33-
file locally
34-
35-
1. Clone the java-stellar-anchor-sdk repo locally
36-
2. Run the docker build command
37-
3. Run the docker command
38-
4. Run the anchorPlatform tests from this repo
31+
```
32+
yarn test:anchorplatform:ci
33+
```

@stellar/typescript-wallet-sdk/test/integration/anchorplatform.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let wallet;
66
let stellar;
77
let anchor;
88
let accountKp;
9-
const anchorUrl = "http://localhost:8080";
9+
const anchorUrl = "https://anchor-sep-server-dev.stellar.org/";
1010

1111
describe("Anchor Platform Integration Tests", () => {
1212
beforeAll(async () => {
@@ -69,6 +69,7 @@ describe("Anchor Platform Integration Tests", () => {
6969
params: {
7070
asset_code: "USDC",
7171
account: accountKp.publicKey,
72+
type: "SEPA",
7273
},
7374
});
7475
expect(dResp.id).toBeTruthy();

0 commit comments

Comments
 (0)