Moved tempest tests back to monasca_tempest_tests folder
Change-Id: I76cae8f3281fbb8c143115f2e61fa4fb7ecc3d72
This commit is contained in:
parent
91648ff095
commit
6d36f4791a
@ -30,40 +30,38 @@ class BaseMonascaTest(tempest.test.BaseTestCase):
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
super(BaseMonascaTest, cls).resource_setup()
|
||||
# cls.os = clients.Manager()
|
||||
# cls.monasca_client = cls.os.monasca_client
|
||||
pass
|
||||
cls.os = clients.Manager()
|
||||
cls.monasca_client = cls.os.monasca_client
|
||||
|
||||
@staticmethod
|
||||
def cleanup_resources(method, list_of_ids):
|
||||
# for resource_id in list_of_ids:
|
||||
# try:
|
||||
# method(resource_id)
|
||||
# except exceptions.NotFound:
|
||||
# pass
|
||||
pass
|
||||
for resource_id in list_of_ids:
|
||||
try:
|
||||
method(resource_id)
|
||||
except exceptions.NotFound:
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def resource_cleanup(cls):
|
||||
super(BaseMonascaTest, cls).resource_cleanup()
|
||||
# resp, response_body = cls.monasca_client.list_alarm_definitions()
|
||||
# elements = response_body['elements']
|
||||
# if elements:
|
||||
# for element in elements:
|
||||
# id = element['id']
|
||||
# cls.monasca_client.delete_alarm_definition(id)
|
||||
resp, response_body = cls.monasca_client.list_alarm_definitions()
|
||||
elements = response_body['elements']
|
||||
if elements:
|
||||
for element in elements:
|
||||
id = element['id']
|
||||
cls.monasca_client.delete_alarm_definition(id)
|
||||
|
||||
# resp, response_body = cls.monasca_client.list_notification_methods()
|
||||
# elements = response_body['elements']
|
||||
# if elements:
|
||||
# for element in elements:
|
||||
# id = element['id']
|
||||
# cls.monasca_client.delete_notification_method(id)
|
||||
resp, response_body = cls.monasca_client.list_notification_methods()
|
||||
elements = response_body['elements']
|
||||
if elements:
|
||||
for element in elements:
|
||||
id = element['id']
|
||||
cls.monasca_client.delete_notification_method(id)
|
||||
|
||||
resp, response_body = cls.monasca_client.list_alarms()
|
||||
elements = response_body['elements']
|
||||
if elements:
|
||||
for element in elements:
|
||||
id = element['id']
|
||||
cls.monasca_client.delete_alarm(id)
|
||||
|
||||
# resp, response_body = cls.monasca_client.list_alarms()
|
||||
# elements = response_body['elements']
|
||||
# if elements:
|
||||
# for element in elements:
|
||||
# id = element['id']
|
||||
# cls.monasca_client.delete_alarm(id)
|
||||
pass
|
||||
|
@ -1,33 +0,0 @@
|
||||
# (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import datetime
|
||||
|
||||
from oslo_serialization import jsonutils as json
|
||||
|
||||
from monasca_tempest_tests.tests.api import base
|
||||
from tempest import test
|
||||
|
||||
|
||||
class TestPlaceholder(base.BaseMonascaTest):
|
||||
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
super(TestPlaceholder, cls).resource_setup()
|
||||
|
||||
@test.attr(type='gate')
|
||||
def test_placeholder(self):
|
||||
# Placeholder Test
|
||||
self.assertTrue(1 == 1)
|
||||
return
|
Loading…
Reference in New Issue
Block a user