Browse Source

First test case

pull/25/head
Nicolas Massé 8 years ago
parent
commit
ed61bbbead
  1. 35
      tests/01-3scale-SaaS-Apicast-Saas/echo-api.yaml
  2. 8
      tests/01-3scale-SaaS-Apicast-Saas/inventory.j2
  3. 1
      tests/01-3scale-SaaS-Apicast-Saas/roles/threescale-cicd
  4. 9
      tests/01-3scale-SaaS-Apicast-Saas/test.yml

35
tests/01-3scale-SaaS-Apicast-Saas/echo-api.yaml

@ -0,0 +1,35 @@
swagger: '2.0'
info:
x-threescale-system-name: 'echo-api'
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'
x-threescale-smoketests-operation: true
responses:
200:
description: 'An Echo from the server'
security:
- apikey: []
securityDefinitions:
apikey:
name: api-key
in: header
type: apiKey

8
tests/01-3scale-SaaS-Apicast-Saas/inventory.j2

@ -0,0 +1,8 @@
[all:vars]
ansible_connection=local
[threescale]
{{ threescale_inventory.threescale_hosted.admin_portal }}
[threescale:vars]
threescale_cicd_access_token={{ threescale_inventory.threescale_hosted.access_token }}

1
tests/01-3scale-SaaS-Apicast-Saas/roles/threescale-cicd

@ -0,0 +1 @@
../../..

9
tests/01-3scale-SaaS-Apicast-Saas/test.yml

@ -0,0 +1,9 @@
---
- name: Deploy the Echo API to a 3scale SaaS instance, with hosted APIcasts
hosts: threescale
gather_facts: no
vars:
threescale_cicd_openapi_file: '{{ playbook_dir }}/echo-api.yaml'
roles:
- threescale-cicd
Loading…
Cancel
Save