Skip to content

Commit

Permalink
chore: add optic
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 11, 2021
1 parent f7f1bda commit 6ab6e19
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .optic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

captures/
1 change: 1 addition & 0 deletions .optic/api/specification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
14 changes: 14 additions & 0 deletions .optic/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Default Ignore Rules
# Learn to configure your own at https://useoptic.com/docs
OPTIONS *
HEAD *
GET (.*).htm
GET (.*).html
GET (.*).css
GET (.*).js
GET (.*).woff
GET (.*).png
GET (.*).jpg
GET (.*).jpeg
GET (.*).svg
GET (.*).gif
5 changes: 5 additions & 0 deletions optic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: "Pact Broker"
tasks:
start:
command: "bundle exec rackup -p ${PORT}"
inboundUrl: http://localhost:4000
3 changes: 3 additions & 0 deletions script/exercise-api-for-optic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

PACT_BROKER_BASE_URL=http://localhost:4000 bundle exec ruby script/reproduce-issue.rb

0 comments on commit 6ab6e19

Please sign in to comment.