Skip to content

Add e2e tests and db fix - #4

Open
blint wants to merge 19 commits into
masterfrom
add-e2e-tests-and-db-fix
Open

Add e2e tests and db fix#4
blint wants to merge 19 commits into
masterfrom
add-e2e-tests-and-db-fix

Conversation

@blint

@blint blint commented Aug 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

blint and others added 19 commits July 9, 2019 19:03
Signed-off-by: Balint Kovacs <blint@blint.hu>
Signed-off-by: Balint Kovacs <blint@blint.hu>
Signed-off-by: Balint Kovacs <blint@blint.hu>
This is the only way to run non-system background services that are
not job-oriented on and above Oreo

Unfortunately this also prevents me to remove the much-hated persistent
notification

Signed-off-by: Balint Kovacs <blint@blint.hu>
Add a JVM-based test suite (Robolectric) and fix a regression this branch
introduced in tunnel persistence.

Fix:
- SSLDroidDbAdapter.createContentValues silently dropped the cacertfile and
  usesni columns. This lost CA-pinning and SNI settings on save, and on a fresh
  install (usesni INTEGER NOT NULL, no default) it violated the NOT NULL
  constraint so insert() returned -1 and tunnels could not be saved at all.
  Persist both columns and drop a duplicated remoteport put().

Tests:
- TcpProxyE2ETest: end-to-end tunnel through the real TcpProxy in front of a
  real TLS backend (no-pinning, matching-CA, and wrong-CA rejection cases).
- SSLDroidDbAdapterTest: CRUD + stop-status, incl. a regression test for the fix.
- TlsTestBackend + generated PKCS12/PEM fixtures under tests/resources.

Build/CI:
- Wire up a JVM unit-test source set (tests/), Robolectric/JUnit deps,
  android.useAndroidX=true, and the JDK 17 --add-opens flags Robolectric needs.
- Add .github/workflows/ci.yml to run the suite on GitHub Actions.

Housekeeping:
- Untrack .idea/ and local.properties and add them to .gitignore.
- docs/branch-review.md documents the review findings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant