Skip to content

Commit

Permalink
Merge pull request #443 from ycombinator/rename-flavor-id
Browse files Browse the repository at this point in the history
Renaming performance1-1 flavor to general1-1
  • Loading branch information
Jamie Hannaford committed Oct 30, 2014
2 parents 4b14236 + 91c0a43 commit 06b6592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/userguide/Orchestration/USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ This operation takes one parameter, an associative array, with the following key
| `name` | Name of the stack | String. Must start with an alphabetic character, and must contain only alphanumeric, `_`, `-` or `.` characters | Yes | - | `simple-lamp-setup` |
| `template` | Template contents | String. JSON or YAML | No, if `templateUrl` is specified | `null` | `heat_template_version: 2013-05-23\ndescription: LAMP server\n` |
| `templateUrl` | URL of the template file | String. HTTP or HTTPS URL | No, if `template` is specified | `null` | `https://raw.githubusercontent.com/rackspace-orchestration-templates/lamp/master/lamp.yaml` |
| `parameters` | Arguments to the template, based on the template's parameters. For example, see the parameters in [this template section](https://github.com/rackspace-orchestration-templates/lamp/blob/master/lamp.yaml#L22) | Associative array | No | `null` | `array('flavor_id' => 'performance1_1')` |
| `parameters` | Arguments to the template, based on the template's parameters. For example, see the parameters in [this template section](https://github.com/rackspace-orchestration-templates/lamp/blob/master/lamp.yaml#L22) | Associative array | No | `null` | `array('flavor_id' => 'general1-1')` |

#### Preview a stack from a template file

Expand Down Expand Up @@ -300,7 +300,7 @@ This operation takes one parameter, an associative array, with the following key
| ---- | ----------- | --------- | --------- | ------------- | ------------- |
| `template` | Template contents | String. JSON or YAML | No, if `templateUrl` is specified | `null` | `heat_template_version: 2013-05-23\ndescription: LAMP server\n` |
| `templateUrl` | URL of template file | String. HTTP or HTTPS URL | No, if `template` is specified | `null` | `https://raw.githubusercontent.com/rackspace-orchestration-templates/lamp/master/lamp-updated.yaml` |
| `parameters` | Arguments to the template, based on the template's parameters | Associative array | No | `null`| `array('flavor_id' => 'performance1_1')` |
| `parameters` | Arguments to the template, based on the template's parameters | Associative array | No | `null`| `array('flavor_id' => 'general1-1')` |
| `timeoutMins` | Duration, in minutes, after which stack update should time out | Integer | Yes | - | 5 |

#### Update a stack from a template file
Expand Down
8 changes: 4 additions & 4 deletions tests/OpenCloud/Tests/Orchestration/Resource/StackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testCreateJson()
'name' => 'foobar',
'templateUrl' => 'https://github.com/ycombinator/drupal-multi/template.yml',
'parameters' => array(
'flavor_id' => 'performance1_1',
'flavor_id' => 'general1-1',
'db_name' => 'drupaldb',
'db_user' => 'drupaldbuser'
),
Expand All @@ -56,7 +56,7 @@ public function testCreateJson()
'stack_name' => 'foobar',
'template_url' => 'https://github.com/ycombinator/drupal-multi/template.yml',
'parameters' => array(
'flavor_id' => 'performance1_1',
'flavor_id' => 'general1-1',
'db_name' => 'drupaldb',
'db_user' => 'drupaldbuser'
),
Expand All @@ -71,7 +71,7 @@ public function testUpdateJson()
$updateParams = array(
'templateUrl' => 'https://github.com/ycombinator/drupal-multi/template.yml',
'parameters' => array(
'flavor_id' => 'performance1_1',
'flavor_id' => 'general1-1',
'db_name' => 'drupaldb',
'db_user' => 'drupalwebuser'
),
Expand All @@ -85,7 +85,7 @@ public function testUpdateJson()
$expectedObj = (object) array(
'template_url' => 'https://github.com/ycombinator/drupal-multi/template.yml',
'parameters' => array(
'flavor_id' => 'performance1_1',
'flavor_id' => 'general1-1',
'db_name' => 'drupaldb',
'db_user' => 'drupalwebuser'
),
Expand Down

0 comments on commit 06b6592

Please sign in to comment.