[
https://issues.apache.org/jira/browse/CLOUDSTACK-8659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14636629#comment-14636629
]
ASF GitHub Bot commented on CLOUDSTACK-8659:
--------------------------------------------
Github user nitt10prashant commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/613#discussion_r35197771
--- Diff: test/integration/testpaths/testpath_uuid_event.py ---
@@ -0,0 +1,198 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
+""" Test cases to verify presentation of volume id in events table
+ for 'SNAPSHOT.CREATE' type.
+"""
+
+from nose.plugins.attrib import attr
+from marvin.cloudstackTestCase import cloudstackTestCase
+from marvin.lib.utils import (cleanup_resources,
+ validateList)
+from marvin.lib.base import (Account,
+ ServiceOffering,
+ Snapshot,
+ VirtualMachine,
+ Configurations
+ )
+from marvin.lib.common import (get_domain,
+ get_zone,
+ get_template,
+ list_volumes,
+ )
+
+from marvin.codes import PASS
+
+
+
+
+class TestVerifyEventsTable(cloudstackTestCase):
+
+ @classmethod
+ def setUpClass(cls):
+ testClient = super(TestVerifyEventsTable, cls).getClsTestClient()
+ cls.apiclient = testClient.getApiClient()
+ cls.testdata = testClient.getParsedTestDataConfig()
+
+ cls.hypervisor = cls.testClient.getHypervisorInfo()
+ # Get Zone, Domain and templates
+ cls.domain = get_domain(cls.apiclient)
+ cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests())
+
+ cls.template = get_template(
+ cls.apiclient,
+ cls.zone.id,
+ cls.testdata["ostype"])
+
+ cls._cleanup = []
+
+ try:
+
+ cls.unsupportedHypervisor = False
+ if cls.hypervisor.lower() in ['hyperv', 'lxc', 'kvm']:
+ if cls.hypervisor.lower() == 'kvm':
+ configs = Configurations.list(
+ cls.apiclient,
+ name='kvm.snapshot.enabled'
+ )
--- End diff --
use of validateList required
> Verify presentation of volume id in description of events table for
> 'SNAPSHOT.CREATE' type.
> -------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-8659
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8659
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.2.1
> Reporter: Priti Sarap
> Labels: snapshot
> Fix For: 4.2.1
>
>
> Verify if events table records UUID of the volume instead of volume ID from
> which snapshot is created for 'SNAPSHOT.CREATE' type .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)