Skip to content

Commit

Permalink
soroban-rpc -> stellar-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Jan 8, 2025
1 parent 437b6e5 commit 11de5b7
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 73 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/horizon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
HORIZON_INTEGRATION_TESTS_CAPTIVE_CORE_USE_DB: true
PROTOCOL_21_CORE_DEBIAN_PKG_VERSION: 21.3.1-2007.4ede19620.focal
PROTOCOL_21_CORE_DOCKER_IMG: stellar/stellar-core:21.3.1-2007.4ede19620.focal
PROTOCOL_21_SOROBAN_RPC_DOCKER_IMG: stellar/soroban-rpc:21.5.1
PROTOCOL_21_STELLAR_RPC_DOCKER_IMG: stellar/stellar-rpc:21.5.1
PROTOCOL_22_CORE_DEBIAN_PKG_VERSION: 22.1.0-2194.0241e79f7.focal
PROTOCOL_22_CORE_DOCKER_IMG: stellar/stellar-core:22.1.0-2194.0241e79f7.focal
PROTOCOL_22_SOROBAN_RPC_DOCKER_IMG: stellar/soroban-rpc:22.0.0-rc3-101
PROTOCOL_22_STELLAR_RPC_DOCKER_IMG: stellar/stellar-rpc:22.0.0-rc3-101
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
Expand Down Expand Up @@ -73,11 +73,11 @@ jobs:
docker pull "$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG"
echo HORIZON_INTEGRATION_TESTS_DOCKER_IMG="$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG" >> $GITHUB_ENV
- name: Pull and set Soroban RPC image
- name: Pull and set Stellar RPC image
shell: bash
run: |
docker pull "$PROTOCOL_${{ matrix.protocol-version }}_SOROBAN_RPC_DOCKER_IMG"
echo HORIZON_INTEGRATION_TESTS_SOROBAN_RPC_DOCKER_IMG="$PROTOCOL_${{ matrix.protocol-version }}_SOROBAN_RPC_DOCKER_IMG" >> $GITHUB_ENV
docker pull "$PROTOCOL_${{ matrix.protocol-version }}_STELLAR_RPC_DOCKER_IMG"
echo HORIZON_INTEGRATION_TESTS_STELLAR_RPC_DOCKER_IMG="$PROTOCOL_${{ matrix.protocol-version }}_STELLAR_RPC_DOCKER_IMG" >> $GITHUB_ENV
- name: Install core
run: |
Expand Down
4 changes: 2 additions & 2 deletions services/horizon/docker/docker-compose.integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ services:
volumes:
- ${CORE_CONFIG_FILE}:/stellar-core.cfg
- ./core-start.sh:/start
soroban-rpc:
stellar-rpc:
platform: linux/amd64
image: ${SOROBAN_RPC_IMAGE:-stellar/soroban-rpc}
image: ${STELLAR_RPC_IMAGE:-stellar/stellar-rpc}
restart: on-failure
ports:
- "8080:8080"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestExtendFootprintTtl(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down
10 changes: 5 additions & 5 deletions services/horizon/internal/integration/invokehostfunction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestContractInvokeHostFunctionInstallContract(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

// establish which account will be contract owner, and load it's current seq
Expand Down Expand Up @@ -83,7 +83,7 @@ func TestContractInvokeHostFunctionCreateContractByAddress(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

// establish which account will be contract owner, and load it's current seq
Expand Down Expand Up @@ -136,7 +136,7 @@ func TestContractInvokeHostFunctionCreateConstructorContract(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -230,7 +230,7 @@ func TestContractInvokeHostFunctionInvokeStatelessContractFn(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

// establish which account will be contract owner
Expand Down Expand Up @@ -338,7 +338,7 @@ func TestContractInvokeHostFunctionInvokeStatefulContractFn(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

// establish which account will be contract owner
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/integration/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestLoad(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

maxAccountsPerTransaction := 100
Expand Down
20 changes: 10 additions & 10 deletions services/horizon/internal/integration/sac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestContractMintToAccount(t *testing.T) {

itest := integration.NewTest(t, integration.Config{
HorizonEnvironment: map[string]string{"INGEST_DISABLE_STATE_VERIFICATION": "true", "CONNECTION_TIMEOUT": "360000"},
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -145,7 +145,7 @@ func TestContractMintToContract(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -225,7 +225,7 @@ func TestExpirationAndRestoration(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
HorizonIngestParameters: map[string]string{
// disable state verification because we will insert
// a fake asset contract in the horizon db and we don't
Expand Down Expand Up @@ -504,7 +504,7 @@ func TestContractTransferBetweenAccounts(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -579,7 +579,7 @@ func TestContractTransferBetweenAccountAndContract(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -700,7 +700,7 @@ func TestContractTransferBetweenContracts(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -782,7 +782,7 @@ func TestContractBurnFromAccount(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -858,7 +858,7 @@ func TestContractBurnFromContract(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -926,7 +926,7 @@ func TestContractClawbackFromAccount(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down Expand Up @@ -1004,7 +1004,7 @@ func TestContractClawbackFromContract(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
QuickExpiration: true,
})

Expand Down
8 changes: 4 additions & 4 deletions services/horizon/internal/integration/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func TestP19MetaTransaction(t *testing.T) {
itest := integration.NewTest(t, integration.Config{
ProtocolVersion: 19,
EnableSorobanRPC: false,
EnableStellarRPC: false,
})

masterAccount, err := itest.Client().AccountDetail(horizonclient.AccountRequest{
Expand Down Expand Up @@ -46,7 +46,7 @@ func TestP19MetaDisabledTransaction(t *testing.T) {
itest := integration.NewTest(t, integration.Config{
ProtocolVersion: 19,
HorizonEnvironment: map[string]string{"SKIP_TXMETA": "TRUE"},
EnableSorobanRPC: false,
EnableStellarRPC: false,
})

masterAccount, err := itest.Client().AccountDetail(horizonclient.AccountRequest{
Expand All @@ -72,7 +72,7 @@ func TestP20MetaTransaction(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

// establish which account will be contract owner, and load it's current seq
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestP20MetaDisabledTransaction(t *testing.T) {

itest := integration.NewTest(t, integration.Config{
HorizonEnvironment: map[string]string{"SKIP_TXMETA": "TRUE"},
EnableSorobanRPC: true,
EnableStellarRPC: true,
})

// establish which account will be contract owner, and load it's current seq
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/integration/txsub_async_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func TestAsyncTxSub_SubmissionTryAgainLater(t *testing.T) {

func TestAsyncTxSub_TransactionMalformed(t *testing.T) {
itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
HorizonEnvironment: map[string]string{
"MAX_HTTP_REQUEST_SIZE": "1800",
},
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/integration/txsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestTxSubLimitsBodySize(t *testing.T) {
}

itest := integration.NewTest(t, integration.Config{
EnableSorobanRPC: true,
EnableStellarRPC: true,
HorizonEnvironment: map[string]string{
"MAX_HTTP_REQUEST_SIZE": "1800",
},
Expand Down
Loading

0 comments on commit 11de5b7

Please sign in to comment.