blob: 278a4e2712db6cff63dd9a6277b8e56639e13c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
- name: create project and pod
uri:
url: "{{ testapi_url }}/{{item}}s"
method: POST
body: "{{ lookup('file', '{}/{}.json'.format(qtip_fixtures, item)) }}"
status_code: [200, 403]
body_format: json
with_items:
- project
- pod
- name: create cases
uri:
url: "{{ testapi_url }}/projects/{{ project_name }}/cases"
method: POST
body: "{{ lookup('file', '{}/case.json'.format(qtip_fixtures)) }}"
status_code: [200, 403]
body_format: json
|