Change tests to use postgres-json-schema instead of hjsonschema.

Embeds https://github.com/gavinwahl/postgres-json-schema.
This commit is contained in:
Robert Vollmert
2019-06-01 23:26:33 -05:00
committed by Steve Chávez
parent e34669b137
commit 65fc672417
7 changed files with 299 additions and 26 deletions
+1 -4
View File
@@ -3,14 +3,11 @@ module Feature.ProxySpec where
import Network.Wai (Application)
import Test.Hspec hiding (pendingWith)
import Test.Hspec.Wai
import Protolude
import SpecHelper
spec :: SpecWith Application
spec =
describe "GET / with proxy" $
it "returns a valid openapi spec with proxy" $ do
pendingWith "Test timing out frequently on CI, please run locally"
it "returns a valid openapi spec with proxy" $
validateOpenApiResponse [("Accept", "application/openapi+json")]
+1 -2
View File
@@ -21,8 +21,7 @@ spec :: SpecWith Application
spec = do
describe "OpenAPI" $ do
it "root path returns a valid openapi spec" $ do
pendingWith "Test timing out frequently on CI, please run locally"
it "root path returns a valid openapi spec" $
validateOpenApiResponse [("Accept", "application/openapi+json")]
it "should respond to openapi request on none root path with 415" $