Bug 1410629 - [Fusor API] Can create deployment without selecting RHV or OpenStack
Summary: [Fusor API] Can create deployment without selecting RHV or OpenStack
Keywords:
Status: NEW
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: fusor-server
Version: 1.1
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Sudhir Mallamprabhakara
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-05 23:19 UTC by Landon LaSmith
Modified: 2017-01-18 15:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Landon LaSmith 2017-01-05 23:19:50 UTC
Description of problem: QCI allows creating a deployment without including RHV or OpenStack when creating a deployment.  This is even allowed when CFME is selected.


QCI Media Version: QCI-1.1-RHEL-7-20170104.t.0


How reproducible: 100%

Steps to Reproduce:
1. Install QCI from ISO
2. Using the fusor api create a deployment
curl -k -X POST -u <user>:<pass> https://<fusor ip>/fusor/api/v21/deployments -H "Content-Type: application/json" -d 
'{"deployment": {
  "deploy_openshift": false, 
  "organization_id": "1", 
  "deploy_cfme": True, 
  "deploy_openstack": false, 
  "name": "no-product", 
  "enable_access_insights": false, 
  "deploy_rhev": false,
  "lifecycle_environment_id": null,
  "description": null}}'

Actual results: Returns HTTP 200 OK with deployment json


Expected results: At the very least it should fail since I didn't specify RHV or OSP but chose to deploy a product (CFME) that requires RHV or OSP


Note You need to log in before you can comment on or make changes to this bug.