diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-22 12:49:21 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-24 08:51:46 +0800 |
commit | 40c29df6796e6d055f35b730e70dac87ab7db2d4 (patch) | |
tree | d8cb93e351f41f3fb371751ed2a632672459a35b /resources/ansible_roles/opnfv-testapi/tasks/setup.yml | |
parent | 385aa6e98428982802ea14a4f6a5a32d3f78c643 (diff) |
Organize **all** tasks into ansible role `qtip`
Change-Id: I5d3852d2a31e9c4043191377e5cb7d539d222a8c
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/opnfv-testapi/tasks/setup.yml')
-rw-r--r-- | resources/ansible_roles/opnfv-testapi/tasks/setup.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/resources/ansible_roles/opnfv-testapi/tasks/setup.yml b/resources/ansible_roles/opnfv-testapi/tasks/setup.yml new file mode 100644 index 00000000..e6bb5224 --- /dev/null +++ b/resources/ansible_roles/opnfv-testapi/tasks/setup.yml @@ -0,0 +1,29 @@ +############################################################################## +# 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 |