From 00f3ecdf4e87dcae900d399f988f890dbb16b979 Mon Sep 17 00:00:00 2001 From: Tristan Garwood Date: Mon, 30 Oct 2023 10:32:59 -0400 Subject: [PATCH] Add to pact readme. --- README.md | 3 +++ pact4s/README.md | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index a3141d3bd..c9fce39d0 100644 --- a/README.md +++ b/README.md @@ -290,3 +290,6 @@ To view the SQL commands generated by ScalikeJDBC, set `scalikejdbc.global.loggi ## Smoke Tests Sam includes smoke tests that can be run anywhere and test a running Sam instance on any network accessible host. See the [Smoke Test README](smoke_test/README.md) for more information. + +## Pact Contract Tests +See the [Pact README](pact4s/README.md) for more information. diff --git a/pact4s/README.md b/pact4s/README.md index ba484140b..3d3b7f3dd 100644 --- a/pact4s/README.md +++ b/pact4s/README.md @@ -10,6 +10,8 @@ The credentials for authenticating with the Pact Broker can be found here: On the command line, you can try the following: ```shell +source env/local.env +source src/main/resources/rendered/secrets.env export PACT_BROKER_URL="https://pact-broker.dsp-eng-tools.broadinstitute.org/" export PACT_BROKER_USERNAME=$(vault read -field=basic_auth_read_only_username secret/dsp/pact-broker/users/read-only) export PACT_BROKER_PASSWORD=$(vault read -field=basic_auth_read_only_password secret/dsp/pact-broker/users/read-only) @@ -21,6 +23,12 @@ In IntelliJ, you can create a Run Configuration for `SamProviderSpec.scala` and * `PACT_BROKER_USERNAME` * `PACT_BROKER_USERNAME` +Or you can run the following command from the root of the project: + +```shell +sbt "set scalafmtOnCompile := false" "project pact4s" "testOnly *SamProviderSpec" +``` + ## References * https://broadworkbench.atlassian.net/wiki/spaces/IRT/pages/2660368406/Getting+Started+with+Pact+Contract+Testing * https://broadworkbench.atlassian.net/wiki/spaces/IRT/pages/2681143308/Pact+Broker+Infrastructure