Commit 53275e23 authored by Julien Muchembled's avatar Julien Muchembled

Remove obsolete test_select_DirectoryNotFound_too_many_for_key

parent 547ce394
......@@ -599,19 +599,6 @@ class OnlineTest(OnlineMixin, unittest.TestCase):
self.assertDirectoryNotFound('Could not find a trustable entry.',
signed_nc.select, key)
def test_select_DirectoryNotFound_too_many_for_key(self):
nc = slapos.libnetworkcache.NetworkcacheClient(self.shacache, self.shadir)
key = 'somekey' + str(random.random())
urlmd5 = str(random.random())
file_name = 'my file'
test_data = tempfile.TemporaryFile()
test_string = str(random.random())
test_data.write(test_string)
nc.upload(self.test_data, key, urlmd5=urlmd5, file_name=file_name)
nc.upload(test_data, key, urlmd5=urlmd5, file_name=file_name)
self.assertDirectoryNotFound("Too many entries for a given key %r" % key,
nc.select, key)
def test_DirectoryNotFound_non_trustable_entry(self):
key_file = tempfile.NamedTemporaryFile()
key_file.write(self.key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment