Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ jobs:
sleep 10
done
echo "SG is up"
until curl -sIkL -H "Authorization: Basic YWRtaW46cGFzc3dvcmQ=" --fail https://localhost:4885/scratch-30; do
printf '.'
sleep 10
done
echo "SG Legacy is up"

#### TEST

Expand All @@ -75,19 +70,9 @@ jobs:
./CppTests -r quiet "[.SyncServerCollection]"
popd

- name: Run SG Legacy Tests
working-directory: ${{github.workspace}}/build
shell: bash
run: |
pushd LiteCore/tests
./CppTests -r quiet "[.SyncServer30]"
popd

- name: Stop Docker containers
if: always()
run: |
pushd Replicator/tests/data/docker
docker compose down
popd


2 changes: 1 addition & 1 deletion Replicator/tests/ReplicatorCollectionSGTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ TEST_CASE_METHOD(ReplicatorCollectionSGTest, "Nonexistent Collection SG", "[.Syn
replParams.collections[2].pull = kC4OneShot;

slice expectedErrorMsg;
C4Error expectedError;
C4Error expectedError{};

SECTION("Collection absent at the remote") {
expectedErrorMsg = "Collection 'flowers.dummy' is not found on the remote server"_sl;
Expand Down
18 changes: 2 additions & 16 deletions Replicator/tests/data/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,11 @@ services:
build:
context: ./sg
args:
- SG_DEB_ARM64=${SG_DEB_ARM64:-https://packages.couchbase.com/releases/couchbase-sync-gateway/3.1.11/couchbase-sync-gateway-enterprise_3.1.11_aarch64.deb}
- SG_DEB_AMD64=${SG_DEB_AMD64:-https://packages.couchbase.com/releases/couchbase-sync-gateway/3.1.11/couchbase-sync-gateway-enterprise_3.1.11_x86_64.deb}
- SG_DEB_ARM64=${SG_DEB_ARM64:-https://packages.couchbase.com/releases/couchbase-sync-gateway/4.0.0/couchbase-sync-gateway-enterprise_4.0.0_aarch64.deb}
- SG_DEB_AMD64=${SG_DEB_AMD64:-https://packages.couchbase.com/releases/couchbase-sync-gateway/4.0.0/couchbase-sync-gateway-enterprise_4.0.0_x86_64.deb}
- SSL=${SSL:-true}
ports:
- "4984:4984"
- "4985:4985"
depends_on:
- "lite-core-cbs"

lite-core-sg-legacy:
build:
context: ./sg
args:
- SG_DEB_ARM64=${SG_LEGACY_DEB_ARM64:-https://packages.couchbase.com/releases/couchbase-sync-gateway/3.0.9/couchbase-sync-gateway-enterprise_3.0.9_aarch64.deb}
- SG_DEB_AMD64=${SG_LEGACY_DEB_AMD64:-https://packages.couchbase.com/releases/couchbase-sync-gateway/3.0.9/couchbase-sync-gateway-enterprise_3.0.9_x86_64.deb}
- SSL=${SSL:-true}
- LEGACY_MODE=true
ports:
- "4884:4884"
- "4885:4885"
depends_on:
- "lite-core-cbs"
4 changes: 0 additions & 4 deletions Replicator/tests/data/docker/sg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM golang:1.23 AS build
RUN apt update
RUN git clone -b release/anemone https://github.com/couchbase/sync_gateway.git
RUN SG_EDITION=CE ./sync_gateway/build.sh

FROM ubuntu:22.04

Expand Down Expand Up @@ -37,8 +35,6 @@ RUN apt update
RUN apt -yqq install systemctl
RUN dpkg -i ./couchbase-sync-gateway.deb

COPY --from=build /go/sync_gateway/bin/sync_gateway_ce /opt/couchbase-sync-gateway/bin/sync_gateway

EXPOSE 4984
EXPOSE 4985
EXPOSE 4884
Expand Down