Skip to content

Commit e86fae0

Browse files
test: enforce strict replay sandboxing in e2e fixtures (#141)
1 parent 5388cae commit e86fae0

90 files changed

Lines changed: 301 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/instrumentation/libraries/fetch/e2e-tests/cjs-fetch/.tusk/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ recording:
2828
export_spans: false
2929

3030
replay:
31+
sandbox:
32+
mode: strict
3133
enable_telemetry: false

src/instrumentation/libraries/fetch/e2e-tests/cjs-fetch/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ COPY src/instrumentation/libraries/fetch/e2e-tests/cjs-fetch/tsconfig.json ./
1010
ARG CACHEBUST=1
1111
ARG TUSK_CLI_VERSION=latest
1212

13+
# Required for strict replay sandbox mode.
14+
RUN apt-get update && apt-get install -y socat bubblewrap && rm -rf /var/lib/apt/lists/*
15+
1316
# Install Tusk Drift CLI
1417
RUN if [ "$TUSK_CLI_VERSION" = "latest" ]; then \
1518
curl -fsSL https://raw.githubusercontent.com/Use-Tusk/tusk-drift-cli/main/install.sh | sh; \

src/instrumentation/libraries/fetch/e2e-tests/cjs-fetch/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ services:
1313
args:
1414
- CACHEBUST=${CACHEBUST:-1}
1515
- TUSK_CLI_VERSION=${TUSK_CLI_VERSION:-latest}
16+
cap_add:
17+
- SYS_ADMIN
18+
security_opt:
19+
- seccomp=unconfined
20+
- apparmor=unconfined
1621
environment:
1722
- PORT=3000
1823
- TUSK_ANALYTICS_DISABLED=1

src/instrumentation/libraries/fetch/e2e-tests/esm-fetch/.tusk/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ recording:
2828
export_spans: false
2929

3030
replay:
31+
sandbox:
32+
mode: strict
3133
enable_telemetry: false

src/instrumentation/libraries/fetch/e2e-tests/esm-fetch/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ COPY src/instrumentation/libraries/fetch/e2e-tests/esm-fetch/tsconfig.json ./
1010
ARG CACHEBUST=1
1111
ARG TUSK_CLI_VERSION=latest
1212

13+
# Required for strict replay sandbox mode.
14+
RUN apt-get update && apt-get install -y socat bubblewrap && rm -rf /var/lib/apt/lists/*
15+
1316
# Install Tusk Drift CLI
1417
RUN if [ "$TUSK_CLI_VERSION" = "latest" ]; then \
1518
curl -fsSL https://raw.githubusercontent.com/Use-Tusk/tusk-drift-cli/main/install.sh | sh; \

src/instrumentation/libraries/fetch/e2e-tests/esm-fetch/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ services:
1313
args:
1414
- CACHEBUST=${CACHEBUST:-1}
1515
- TUSK_CLI_VERSION=${TUSK_CLI_VERSION:-latest}
16+
cap_add:
17+
- SYS_ADMIN
18+
security_opt:
19+
- seccomp=unconfined
20+
- apparmor=unconfined
1621
environment:
1722
- PORT=3000
1823
- TUSK_ANALYTICS_DISABLED=1

src/instrumentation/libraries/firestore/e2e-tests/cjs-firestore/.tusk/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ recording:
3131
export_spans: false
3232

3333
replay:
34+
sandbox:
35+
mode: strict
3436
enable_telemetry: false

src/instrumentation/libraries/firestore/e2e-tests/cjs-firestore/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ COPY src/instrumentation/libraries/firestore/e2e-tests/cjs-firestore/tsconfig.js
1010
ARG CACHEBUST=1
1111
ARG TUSK_CLI_VERSION=latest
1212

13+
# Required for strict replay sandbox mode.
14+
RUN apt-get update && apt-get install -y socat bubblewrap && rm -rf /var/lib/apt/lists/*
15+
1316
# Install Tusk Drift CLI
1417
RUN if [ "$TUSK_CLI_VERSION" = "latest" ]; then \
1518
curl -fsSL https://raw.githubusercontent.com/Use-Tusk/tusk-drift-cli/main/install.sh | sh; \

src/instrumentation/libraries/firestore/e2e-tests/cjs-firestore/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ services:
66
args:
77
- CACHEBUST=${CACHEBUST:-1}
88
- TUSK_CLI_VERSION=${TUSK_CLI_VERSION:-latest}
9+
cap_add:
10+
- SYS_ADMIN
11+
security_opt:
12+
- seccomp=unconfined
13+
- apparmor=unconfined
914
environment:
1015
- PORT=3000
1116
- FIREBASE_PROJECT_ID=${FIREBASE_PROJECT_ID}

src/instrumentation/libraries/firestore/e2e-tests/esm-firestore/.tusk/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ recording:
3131
export_spans: false
3232

3333
replay:
34+
sandbox:
35+
mode: strict
3436
enable_telemetry: false

0 commit comments

Comments
 (0)