1
0
mirror of synced 2026-01-07 18:06:03 -05:00
Commit Graph

27 Commits

Author SHA1 Message Date
Evan Tahler
3d053e32ee Use Nginx + Basic Auth to secure OSS Airbyte (#17694)
* Use Nginx + Basic Auth to secure OSS Airbyte

* use local passwords

* Use gradle builds

* K8s setup and source values from ENV

* note about disabling

* add back defaults

* custom 401 page

* update http message

* update docs

* remove kube files

* additional doc updates

* Add a test suite

* fix failure exit codes

* doc updates

* Add docs

* bump to re-test

* add more sleep in tests for CI

* better sleep in test

* Update docs/operator-guides/security.md

Co-authored-by: Davin Chia <davinchia@gmail.com>

* PR updates

* test comment

* change test host on CI

* update tests and nginx to boot without backend

* proxy updates for docker DNS

* simpler test for uptime

* acceptance test skips PWs

* remove resolver madness

* fixup tests

* more proxy_pass revert

* update acceptance test exit codes

* relax test expectations

* add temporal mount back for testing

* Update docs/operator-guides/security.md

Co-authored-by: swyx <shawnthe1@gmail.com>

* Update airbyte-proxy/401.html

Co-authored-by: swyx <shawnthe1@gmail.com>

* more doc updates

* Octavia CLI uses Basic Auth  (#17982)

* [WIP] Octavia CLI uses Basic Auth

* readme

* augustin: add basic auth headers to clien

* augustin: add basic auth headers to client

* tests passing

* lint

* docs

* Move monkey patch to test

* coerce headers into strings

* monkey patch get_basic_auth_token

Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>

* fix launch permissions

* Keep worker port internal

* more readme

Co-authored-by: Davin Chia <davinchia@gmail.com>
Co-authored-by: swyx <shawnthe1@gmail.com>
Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
2022-10-19 15:52:01 -07:00
Benoit Moriceau
260ab6bdea Move the port forward outside of the main docker-compose (#17864) 2022-10-17 12:59:28 -07:00
Jimmy Ma
d2a717594c Add some services start validation to acceptance_tests.sh (#17425) 2022-09-30 10:35:27 -07:00
Davin Chia
fd0b7699a4 Add JUnit Test Reports to build outputs. (#15271)
It's difficult today to parse all the logs from tests. Engineers waste time scrolling through the log outputs and looking for the relevant stack trace.

This PR adds an action to generate a JUnit report so devs can understand test results at a glance. This generates 3 reports for each of the main build jobs when the build completes. We leave the frontend build out since this is aggregated by cypress.

See https://github.com/airbytehq/airbyte/pull/15271/checks?check_run_id=7683783016 for an example of how this works.

Use the https://github.com/dorny/test-reporter action and configure this to look at the Jacoco test report output for top level and second level builds. Note that most of the parameters into the action don't work.

Comment out the trap commands to output logs. Though this can be useful for debugging, there is little practical use in the day-to-day, and results in extremely noisy logs.
2022-08-08 17:04:36 -07:00
Davin Chia
f9026b0dfc Remove unnecessary test logging. (#15384)
This logging makes it tough to figure out what is happening in the tests.
2022-08-05 17:20:36 -07:00
Lake Mossman
6005a9a20e CDC partial reset acceptance test (#14551)
* set per stream feature flag to true for testing

* add a second table to cdc acceptance tests

* add partial reset test

* format

* add partial reset cdc tests

* test incremental after partial reset

* remove dev image from acceptance test

* fix flag and add comment

* Revert "set per stream feature flag to true for testing"

This reverts commit 164d7da05990268b09e315eb88ff297d3a9f52f4.

* set USE_STREAM_CAPABLE_STATE flag to true in acceptance test script

* call new update endpoint

* use methods in test harness instead

* remove comment

* format

* fix state check in basic acceptance test

* use test info for test name logging
2022-07-15 16:03:15 -07:00
Lake Mossman
a82f41edcf Acceptance test scripts - kill containers using volumes on shutdown (#12887)
* kill containers using volumes on shutdown in acceptance test scripts

* apply change to octavia integration tests as well

* escape inner command to make it be executed at the right time
2022-05-16 17:09:46 -07:00
Davin Chia
60e32373e8 Revert "Revert "Switch to use Bootloader. (#8584)" (#8778)" (#8790)
This reverts commit 216501b4fa.

Turn this back on since this was originally reverted for logging update changes.
2021-12-15 14:09:43 +08:00
Davin Chia
216501b4fa Revert "Switch to use Bootloader. (#8584)" (#8778)
This reverts commit 5cf3967424.
2021-12-14 21:36:12 +08:00
Davin Chia
5cf3967424 Switch to use Bootloader. (#8584)
- Add the CONFIGS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION and JOBS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION. These are env vars that will determine if the database is ready for an application to start.
- Add the CONFIGS_DATABASE_INITIALIZATION_TIMEOUT_MS and the JOBS_DATABASE_INITIALIZATION_TIMEOUT_MS env vars to determine how long an application should wait for the DB before giving up.
- Create the MinimumFlywayMigrationVersionCheck class. This class contains all the assertions to check if 1) a database is initialised. 2) a database meets the minimum migration version.
- Remove all set up operations from the ServerApp. Use MinimumFlywayMigrationVersionCheck operations instead.
- I also had to modify the Databases and BaseDatabaseInstance classes to support connecting to a database with timeouts. We would previously try forever.
- Add Bootloader to the relevant docker files and Kube files.
- Clean up the migration acceptance tests so it's clear what is happening.
2021-12-14 21:30:18 +08:00
Charles
005e4f21ba remove todo to handle bug in old version of docker compose; not an issue in new versions (#8122) 2021-11-19 13:19:40 -08:00
Charles
4c8ce600a7 Create a test container for running Airbyte with docker-compose (#4970) 2021-07-26 13:19:41 -07:00
LiRen Tu
e8f20b286a Create jobs database tables without init container (#4942)
* Refactor jobs and configs database initialization

* Add unit tests

* Format code

* Refactor code

* Update document

* Fix tests

* Add back init script to create db and user permission

* Remove old schema files

* Dry database instance implementations

* Revert unnecessary changes

* Rename resource directories

* Format code

* Add readme

* Move and rename database schema to jobs database schema

* Introduce table schema interface

* Rearrange packages

* Format code

* Address review comments

* Show more logs for acceptance test

* Do not depend on service uuid for db readiness
2021-07-25 22:33:35 -07:00
Charles
76adc25820 Split Platform and Connector Builds (#4514) 2021-07-15 10:49:15 -07:00
Davin Chia
1b0cf66bd3 Clean up Docker volume after running Docker Acceptance Test. (#4603) 2021-07-07 22:19:59 +08:00
Davin Chia
e6d412eae3 Release 0.21.0-alpha. (#3001)
* Remove no longer needed test setup.

* Bump version: 0.20.0-alpha → 0.21.0-alpha
2021-04-21 12:15:41 +08:00
Davin Chia
b468c39481 Explicitly build the images to get the tests to pass for now. (#2961)
* Explicitly build the images to get the tests to pass for now.

* Fix NPE and add better logging.
2021-04-20 10:58:43 +08:00
jrhizor
a4c05f2d56 Revert "remove file creation hack"
This reverts commit f5f58e2f64.
2020-12-16 16:01:23 -08:00
jrhizor
f5f58e2f64 remove file creation hack 2020-12-16 13:54:42 -08:00
Charles
d6cf060093 turn off segment for acceptance test script (#1177) 2020-12-02 20:11:28 -08:00
jrhizor
3115f4fb06 hotfix: rerun tasks for integration and accceptance tests 2020-11-20 12:07:51 -08:00
Sherif A. Nada
e20cf1a6f4 publish build scans in CI (#691) 2020-10-22 22:47:26 -07:00
Charles
93bcfa7ea0 hotfix: docker-compose 1.27.3 volume issue (#452)
* https://github.com/airbytehq/airbyte/issues/451
2020-09-24 15:11:45 -07:00
Michel Tricot
e3737a2c06 Introducing Airbyte (#348) 2020-09-18 20:41:09 -07:00
Sherif A. Nada
45a706434a display logs after running acceptance tests (#314) 2020-09-16 14:43:42 -07:00
Charles
2022cc39d1 set acceptance tests to not use a daemon (#313) 2020-09-16 14:39:20 -07:00
Sherif A. Nada
7424ac3bbb Add initial acceptance test structure and first test (#150) 2020-09-01 14:44:47 -07:00