Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#9166): backwards compatible couchdb views (4.7.x) #9183

Merged
merged 4 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(#9179): updates docker network integration test (#9180)
(cherry picked from commit 7aa2b59)
  • Loading branch information
dianabarsan committed Jun 17, 2024
commit bf07307aeb2bb56b34c507f55f1e5a248d6f4078
11 changes: 10 additions & 1 deletion tests/integration/couchdb/couch_chttpd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ const startContainer = async (useAuthentication) => {
if (useAuthentication) {
env.COUCH_AUTH = `${constants.USERNAME}:${constants.PASSWORD}`;
}
return await runDockerCommand('docker-compose', ['up', '--build', '--force-recreate'], env);
await runDockerCommand('docker-compose', ['up', '--build', '--force-recreate'], env);
};

const stopContainer = async () => {
await runDockerCommand('docker-compose', ['down', '--remove-orphans']);
};

const getLogs = async () => {
const containerName = (await runDockerCommand('docker-compose', ['ps', '-q', '-a']))[0];
const logs = await runDockerCommand('docker', ['logs', containerName]);
Expand All @@ -47,6 +52,10 @@ const expectCorrectMetadata = (metadata) => {
};

describe('accessing couch clustering endpoint', () => {
afterEach(async () => {
await stopContainer();
});

it('should block unauthenticated access through the host network', async () => {
await expect(
utils.request({ uri: `https://localhost/_node/_local/_dbs/${constants.DB_NAME}`, noAuth: true })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
chttpd_call:
build: .
Expand All @@ -11,3 +9,4 @@ services:
networks:
net:
name: cht-net-e2e
external: true
Loading