Repository: libcloud Updated Branches: refs/heads/trunk 2dcf43400 -> 102608f16
[LIBCLOUD-1014] Fix test for PR #1240 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/7dce67d1 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/7dce67d1 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/7dce67d1 Branch: refs/heads/trunk Commit: 7dce67d17764bf47430c5e5207748fc25c8e73c1 Parents: 51b6609 Author: elesbom <[email protected]> Authored: Mon Sep 24 14:39:59 2018 -0300 Committer: Rick van de Loo <[email protected]> Committed: Fri Oct 26 18:43:27 2018 +0200 ---------------------------------------------------------------------- libcloud/test/compute/test_ec2.py | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/7dce67d1/libcloud/test/compute/test_ec2.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py index 430718a..bc22666 100644 --- a/libcloud/test/compute/test_ec2.py +++ b/libcloud/test/compute/test_ec2.py @@ -1802,6 +1802,15 @@ class NimbusTests(EC2Tests): self.driver.ex_create_tags(resource=node, tags={'foo': 'bar'}) self.assertExecutedMethodCount(0) + def test_create_volume_snapshot_with_tags(self): + vol = StorageVolume(id='vol-4282672b', name='test', + state=StorageVolumeState.AVAILABLE, + size=10, driver=self.driver) + snap = self.driver.create_volume_snapshot( + vol, 'Test snapshot', ex_metadata={'my_tag': 'test'}) + self.assertDictEqual({}, snap.extra['tags']) + + class EucTests(LibcloudTestCase, TestCaseMixin):
