Skip to content

Commit 48015a8

Browse files
committed
TEST/MINOR: Fix the set_uid e2e test to work both on Alpine and Debian
1 parent a73252e commit 48015a8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.aspell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ allowed:
4343
- libdns
4444
- txt
4545
- testname
46+
- uid

e2e/tests/set_uid/test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ setup() {
2424
run dpa_docker_exec 'pkill -9 dataplaneapi'
2525
assert_success
2626

27-
run dpa_docker_exec 'adduser -u 1500 testuiduser'
27+
run dpa_docker_exec 'adduser -u 1500 testuiduser || useradd -m -u 1500 testuiduser'
2828
#assert_success ignore error since we do not plan to insert password, user will be created
2929

3030
run docker cp "${BATS_TEST_DIRNAME}/dataplaneapi.yaml" "${DOCKER_CONTAINER_NAME}:/home/testuiduser/dataplaneapi.yaml"

0 commit comments

Comments
 (0)