File tree 4 files changed +6
-7
lines changed
service/src/test/java/bio/terra/profile/pact
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 72
72
- name : Output consumer contract as non-breaking base64 string
73
73
id : encode-pact
74
74
run : |
75
- NON_BREAKING_B64=$(cat service/build/pacts/bpm-consumer- sam-provider .json | base64 -w 0)
75
+ NON_BREAKING_B64=$(cat service/build/pacts/bpm-sam.json | base64 -w 0)
76
76
echo "pact-b64=${NON_BREAKING_B64}" >> $GITHUB_OUTPUT
77
77
78
78
publish-contracts :
@@ -100,5 +100,4 @@ jobs:
100
100
# repo: broadinstitute/terra-github-workflows
101
101
# ref: refs/heads/main
102
102
# token: ${{ secrets.BROADBOT_TOKEN }} # github token for access to kick off a job in the private repo
103
- # inputs: '{ "pacticipant": "bpm-consumer", "version": "${{ needs.init-github-context.outputs.repo-version }}" }'
104
-
103
+ # inputs: '{ "pacticipant": "bpm", "version": "${{ needs.init-github-context.outputs.repo-version }}" }'
Original file line number Diff line number Diff line change @@ -212,4 +212,4 @@ jobs:
212
212
repo : broadinstitute/terra-github-workflows
213
213
ref : refs/heads/main
214
214
token : ${{ secrets.BROADBOT_TOKEN }} # github token for access to kick off a job in the private repo
215
- inputs : ' { "pacticipant": "bpm-provider ", "version": "${{ needs.verify-consumer-pact.outputs.provider-sha }}" }'
215
+ inputs : ' { "pacticipant": "bpm", "version": "${{ needs.verify-consumer-pact.outputs.provider-sha }}" }'
Original file line number Diff line number Diff line change 19
19
@ PactConsumerTest
20
20
public class SamServiceTest {
21
21
22
- @ Pact (consumer = "bpm-consumer " , provider = "sam-provider " )
22
+ @ Pact (consumer = "bpm" , provider = "sam" )
23
23
public RequestResponsePact statusApiPact (PactDslWithProvider builder ) {
24
24
return builder
25
25
.given ("Sam is ok" )
@@ -32,7 +32,7 @@ public RequestResponsePact statusApiPact(PactDslWithProvider builder) {
32
32
.toPact ();
33
33
}
34
34
35
- @ Pact (consumer = "bpm-consumer " , provider = "sam-provider " )
35
+ @ Pact (consumer = "bpm" , provider = "sam" )
36
36
public RequestResponsePact userStatusPact (PactDslWithProvider builder ) {
37
37
var userResponseShape =
38
38
new PactDslJsonBody ()
Original file line number Diff line number Diff line change 59
59
import org .springframework .jdbc .core .namedparam .NamedParameterJdbcTemplate ;
60
60
61
61
@ Tag ("provider-test" )
62
- @ Provider ("bpm-provider " )
62
+ @ Provider ("bpm" )
63
63
@ PactBroker
64
64
// for local testing, put any test pacts in the service/pacts folder.
65
65
// then comment out the above line, and uncomment the following line
You can’t perform that action at this time.
0 commit comments