6 changed files with 71 additions and 4 deletions
@ -0,0 +1,16 @@ |
|||
--- |
|||
|
|||
- name: Deploy the Echo API to a 3scale SaaS instance, with hosted APIcasts and no smoketests |
|||
hosts: threescale |
|||
gather_facts: no |
|||
vars: |
|||
threescale_cicd_openapi_smoketest_operation: Echo |
|||
threescale_cicd_openapi_file: '{{ playbook_dir }}/api/echo-api-bare.yaml' |
|||
tasks: |
|||
# Deploy the service |
|||
- import_role: |
|||
name: 'nmasse-itix.threescale-cicd' |
|||
# Delete the service |
|||
- import_role: |
|||
name: 'nmasse-itix.threescale-cicd' |
|||
tasks_from: 'cleanup' |
|||
@ -0,0 +1,16 @@ |
|||
--- |
|||
|
|||
- name: Deploy the Echo API to a 3scale SaaS instance, with hosted APIcasts and no smoketests |
|||
hosts: threescale |
|||
gather_facts: no |
|||
vars: |
|||
# There is no "threescale_cicd_openapi_smoketest_operation" variable |
|||
threescale_cicd_openapi_file: '{{ playbook_dir }}/api/echo-api-bare.yaml' |
|||
tasks: |
|||
# Deploy the service |
|||
- import_role: |
|||
name: 'nmasse-itix.threescale-cicd' |
|||
# Delete the service |
|||
- import_role: |
|||
name: 'nmasse-itix.threescale-cicd' |
|||
tasks_from: 'cleanup' |
|||
@ -0,0 +1,33 @@ |
|||
swagger: '2.0' |
|||
info: |
|||
title: 'Echo API' |
|||
description: 'A very simple API.' |
|||
contact: |
|||
name: 'Nicolas MASSE' |
|||
url: 'http://github.com/nmasse-itix' |
|||
email: nmasse@redhat.com |
|||
license: |
|||
name: 'MIT License' |
|||
url: 'https://opensource.org/licenses/MIT' |
|||
version: '1.0' |
|||
host: 'echo-api.3scale.net' |
|||
schemes: |
|||
- http |
|||
paths: |
|||
/: |
|||
get: |
|||
operationId: Echo |
|||
tags: |
|||
- echo |
|||
summary: 'Get an echo' |
|||
description: 'Get an echo from the server' |
|||
responses: |
|||
200: |
|||
description: 'An Echo from the server' |
|||
security: |
|||
- apikey: [] |
|||
securityDefinitions: |
|||
apikey: |
|||
name: api-key |
|||
in: header |
|||
type: apiKey |
|||
Loading…
Reference in new issue