summaryrefslogtreecommitdiffstats
path: root/src/account
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-11-15 17:40:45 +0100
committerTomas Bzatek <tbzatek@redhat.com>2013-11-15 17:40:45 +0100
commit6276dde7a0acdd32e9a9532dd92c75723387ea1d (patch)
treec3215a5f130b40a16802ceda87d15c82155d7271 /src/account
parent70e0264a01c4af14707a04d07002f1f3c7d17227 (diff)
downloadopenlmi-providers-6276dde7a0acdd32e9a9532dd92c75723387ea1d.tar.gz
openlmi-providers-6276dde7a0acdd32e9a9532dd92c75723387ea1d.tar.xz
openlmi-providers-6276dde7a0acdd32e9a9532dd92c75723387ea1d.zip
account: Make filter names in tests nicer
Don't create very long strings (although it's a nice stress to CIMOM).
Diffstat (limited to 'src/account')
-rw-r--r--src/account/test/TestIndications.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/account/test/TestIndications.py b/src/account/test/TestIndications.py
index 5f74548..45962ca 100644
--- a/src/account/test/TestIndications.py
+++ b/src/account/test/TestIndications.py
@@ -31,7 +31,7 @@ class TestIndications(AccountBase):
"""
Account: Test good indication filter
"""
- filter_name = "test_good_filter_%d" % time.time() * 1000
+ filter_name = "test_good_filter_%d" % (time.time() * 1000000)
sub = self.subscribe(filter_name, "select * from LMI_AccountInstanceCreationIndication where SourceInstance isa LMI_Account")
self.assertIsNotNone(sub)
self.unsubscribe(filter_name);
@@ -47,7 +47,7 @@ class TestIndications(AccountBase):
Account: Test indication of group deletion
"""
create_group(self.group_name)
- filter_name = "test_delete_group_%d" % time.time() * 1000
+ filter_name = "test_delete_group_%d" % (time.time() * 1000000)
sub = self.subscribe(filter_name, "select * from LMI_AccountInstanceDeletionIndication where SourceInstance isa LMI_Group")
clean_group(self.group_name)
indication = self.get_indication(10)
@@ -61,7 +61,7 @@ class TestIndications(AccountBase):
Account: Test indication of group creation
"""
clean_group(self.group_name)
- filter_name = "test_create_group_%d" % time.time() * 1000
+ filter_name = "test_create_group_%d" % (time.time() * 1000000)
sub = self.subscribe(filter_name, "select * from LMI_AccountInstanceCreationIndication where SourceInstance isa LMI_Group")
create_group(self.group_name)
indication = self.get_indication(10)
@@ -76,7 +76,7 @@ class TestIndications(AccountBase):
Account: Test indication of account deletion
"""
create_account(self.user_name)
- filter_name = "test_delete_account_%d" % time.time() * 1000
+ filter_name = "test_delete_account_%d" % (time.time() * 1000000)
sub = self.subscribe(filter_name, "select * from LMI_AccountInstanceDeletionIndication where SourceInstance isa LMI_Account")
clean_account(self.user_name)
indication = self.get_indication(10)
@@ -90,7 +90,7 @@ class TestIndications(AccountBase):
Account: Test indication of account creation
"""
clean_account(self.user_name)
- filter_name = "test_create_account_%d" % time.time() * 1000
+ filter_name = "test_create_account_%d" % (time.time() * 1000000)
sub = self.subscribe(filter_name, "select * from LMI_AccountInstanceCreationIndication where SourceInstance isa LMI_Account")
create_account(self.user_name)
indication = self.get_indication(10)