All checks were successful
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 47s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Successful in 1m47s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Successful in 2m37s
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Successful in 2m52s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Successful in 3m2s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 31s
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Successful in 2m44s
/ deploy (push) Successful in 48s
24 lines
1.9 KiB
JavaScript
24 lines
1.9 KiB
JavaScript
const snapEndoint = require("./utils/snapEndpoint")
|
|
|
|
const ENDPOINT = "http://0.0.0.0:4200/api/v1"
|
|
|
|
it(`Expose OpenApi Spec of API Service`, async () => {
|
|
await snapEndoint({
|
|
name: "api.spec",
|
|
url: `${ENDPOINT}/spec`,
|
|
})
|
|
})
|
|
|
|
it(`Expose GraphQL Spec of API Service`, async () => {
|
|
await snapEndoint({
|
|
name: "api.graphql",
|
|
url: `${ENDPOINT}/graphql`,
|
|
method: "POST",
|
|
data: {
|
|
operationName: "IntrospectionQuery",
|
|
query:
|
|
"query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n}\n\nfragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n}\n\nfragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue\n}\n\nfragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n}\n",
|
|
variables: {},
|
|
},
|
|
})
|
|
})
|