Skip to content

Commit ed66b08

Browse files
authored
Merge pull request #256 from cipherstash/fix/golang-integration-test
Fix/golang integration test
2 parents 6997dff + e46b5ec commit ed66b08

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

DEVELOPMENT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,12 @@ The integration tests have several runtime dependencies:
409409
- Running PostgreSQL instances (that can be started with `mise run postgres:up`)
410410
- Credentials for CipherStash ZeroKMS (which can be found in the [quickstart](#developing) section)
411411

412+
##### Language-specific integration tests
412413

414+
To run language-specific integration tests, call:
415+
416+
- `mise run test:integration:lang:golang`
417+
- `mise run test:integration:lang:python`
413418

414419

415420
### Working with Encrypt Query Language (EQL)

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ run = """
499499
set -e
500500
mise --env tls run postgres:up --extra-args "--detach --wait"
501501
mise --env tls run postgres:setup
502+
mise --env tls run proxy:down
502503
mise --env tls run proxy:up proxy-tls --extra-args "--detach --wait"
503504
echo docker compose run --rm --no-TTY --build python {{option(name="extra-args",default="")}} | bash
504505
"""

tests/tasks/test/integration/golang.sh renamed to tests/tasks/test/integration/lang/golang.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
set -e
77

8-
source "$(dirname "${BASH_SOURCE[0]}")/url_encode.sh"
8+
mise --env tls run postgres:up --extra-args "--detach --wait"
9+
mise --env tls run postgres:setup
10+
mise --env tls run proxy:down proxy-tls
11+
mise --env tls run proxy:up --extra-args "--detach --wait"
12+
13+
source "$(dirname "${BASH_SOURCE[0]}")/../url_encode.sh"
914

1015
encoded_password=$(urlencode "${CS_DATABASE__PASSWORD}")
1116

0 commit comments

Comments
 (0)