Bug 807553 - [Rest API] valid embed cartridge list for a scalable app should only list mysql and jenkin-client
Summary: [Rest API] valid embed cartridge list for a scalable app should only list mys...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-28 06:44 UTC by Johnny Liu
Modified: 2012-06-25 18:26 UTC (History)
2 users (show)

Fixed In Version: devenv_1825
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-25 18:26:30 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Johnny Liu 2012-03-28 06:44:41 UTC
Description of problem:
Create a scalable app, run the following command to get valid embed cartridge list.
$ curl -k -X GET -H 'Accept: application/xml' --user jialiu@redhat.com:214214 https://ec2-50-17-96-240.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications/myapp
...
      <link>
        <href>/domains/jialiu/applications/myapp/cartridges</href>
        <optional-params/>
        <method>POST</method>
        <required-params>
          <param>
            <valid-options>
              <valid-option>mongodb-2.0</valid-option>
              <valid-option>cron-1.4</valid-option>
              <valid-option>mysql-5.1</valid-option>
              <valid-option>postgresql-8.4</valid-option>
              <valid-option>haproxy-1.4</valid-option>
              <valid-option>10gen-mms-agent-0.1</valid-option>
              <valid-option>phpmyadmin-3.4</valid-option>
              <valid-option>metrics-0.1</valid-option>
              <valid-option>phpmoadmin-1.0</valid-option>
              <valid-option>rockmongo-1.1</valid-option>
              <valid-option>jenkins-client-1.4</valid-option>
            </valid-options>
            <description>framework-type, e.g.: mysql-5.1</description>
            <type>string</type>
            <name>cartridge</name>
          </param>
        </required-params>
        <rel>Add embedded cartridge</rel>
      </link>
...

Valid option should only list mysql-5.1 and jenkins-client-1.4.

Version-Release number of selected component (if applicable):
devenv_1677

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Johnny Liu 2012-06-11 04:45:46 UTC
Verified this bug devenv_1827, and PASS.
$ curl -k -X POST -H 'Accept: application/xml' -d name=phptest -d cartridge=php-5.3 -d scale=true --user jialiu@redhat.com:214214 https://ec2-107-20-92-208.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications
...
        <link>
          <optional-params/>
          <href>https://ec2-107-20-92-208.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications/phptest/cartridges</href>
          <rel>Add embedded cartridge</rel>
          <method>POST</method>
          <required-params>
            <param>
              <type>string</type>
              <name>cartridge</name>
              <valid-options>
                <valid-option>mysql-5.1</valid-option>
                <valid-option>mongodb-2.0</valid-option>
                <valid-option>jenkins-client-1.4</valid-option>
              </valid-options>
              <description>framework-type, e.g.: mysql-5.1</description>
            </param>
          </required-params>
        </link>
...


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