"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "rally-scenarios/plugins/sample_plugin.py" between
openstack-heat-12.0.0.tar.gz and openstack-heat-13.0.0.tar.gz

About: OpenStack Heat (Optional Service: Orchestration) orchestrates multiple composite cloud applications by using either the native HOT template format or the AWS CloudFormation template format, through both an OpenStack-native REST API and a CloudFormation-compatible Query API.
The "Train" series (latest release).

sample_plugin.py  (openstack-heat-12.0.0):sample_plugin.py  (openstack-heat-13.0.0)
skipping to change at line 19 skipping to change at line 19
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
"""Sample plugin for Heat. """Sample plugin for Heat.
For more Heat related benchmarks take a look here: For more Heat related benchmarks take a look here:
https://git.openstack.org/cgit/openstack/rally/tree/rally/plugins/openstack/scen arios/heat https://opendev.org/openstack/heat/src/branch/master/rally-scenarios
About plugins: https://rally.readthedocs.io/en/latest/plugins/#rally-plugins About plugins: https://rally.readthedocs.io/en/latest/plugins/#rally-plugins
Rally concepts https://wiki.openstack.org/wiki/Rally/Concepts Rally concepts https://wiki.openstack.org/wiki/Rally/Concepts
""" """
from rally.plugins.openstack import scenario from rally.plugins.openstack import scenario
class HeatPlugin(scenario.OpenStackScenario): class HeatPlugin(scenario.OpenStackScenario):
@scenario.configure(context={"cleanup": ["heat"]}) @scenario.configure(context={"cleanup": ["heat"]})
def list_benchmark(self, container_format, def list_benchmark(self, container_format,
image_location, disk_format, **kwargs): image_location, disk_format, **kwargs):
"""Get heatclient and do whatever.""" """Get heatclient and do whatever."""
stacks = list(self.clients("heat").stacks.list()) list(self.clients("heat").stacks.list())
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)