<feed xmlns='http://www.w3.org/2005/Atom'>
<title>soledad.git/testing/tests, branch 0.9.0rc1</title>
<subtitle>[soledad]
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/'/>
<entry>
<title>[tests] make check_schema_versions default to False</title>
<updated>2016-10-21T17:09:54+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-10-05T22:52:58+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=09a62dd1d6b076fcc7ac001d0b998ebb119feaad'/>
<id>09a62dd1d6b076fcc7ac001d0b998ebb119feaad</id>
<content type='text'>
CouchServerState is spread across test codebase and this option is
intended to be used only on server startup. This commit makes it default
to False and explicitly set it to True on where it's necessary.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CouchServerState is spread across test codebase and this option is
intended to be used only on server startup. This commit makes it default
to False and explicitly set it to True on where it's necessary.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] check for user dbs couch schema versions</title>
<updated>2016-10-03T22:27:42+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-10-03T22:27:42+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=4e06eb370b99f2d343e96f774a3ad9b8b77c9548'/>
<id>4e06eb370b99f2d343e96f774a3ad9b8b77c9548</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] use pytest tmpdir fixture in all tests</title>
<updated>2016-09-30T12:08:03+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-09-24T14:32:13+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=d5bbe37495ee733be5f78de72364f3ec48ed7a0d'/>
<id>d5bbe37495ee733be5f78de72364f3ec48ed7a0d</id>
<content type='text'>
Tests that were imported from u1db or created on top of that structure
were leaving temporary directories behind. This could cause problems in
test servers, either by filling the partition or by extrapolating the
maximum amount of files in a directory.

This commit replaces all usages of temporary directories in the old test
structure by pytest tmpdir fixture, which properly cares for removing
temporary directories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests that were imported from u1db or created on top of that structure
were leaving temporary directories behind. This could cause problems in
test servers, either by filling the partition or by extrapolating the
maximum amount of files in a directory.

This commit replaces all usages of temporary directories in the old test
structure by pytest tmpdir fixture, which properly cares for removing
temporary directories.
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] randomize payload</title>
<updated>2016-08-29T15:26:24+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-29T03:05:45+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=d86831e4cd3e77f340618168528e62cf4dafb5d7'/>
<id>d86831e4cd3e77f340618168528e62cf4dafb5d7</id>
<content type='text'>
We were using 'x'*size as payload, but on real usage the payload will be
random. This commit randomizes the payload using a predefined seed, so
the random payload will be the same across benchmarks.
Using random payloads also improves accuracy of compression or encoding
impacts and we will be evaluating those changes for resouce usage
issues.
Also note that base64 is used on payload. That was needed for utf8
safety, but overhead was removed to leave payloads as defined by
benchmarks.
Base64 was chosen also due its popular usage on MIME encoding, which is
used on mail attachments (our current scenario).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were using 'x'*size as payload, but on real usage the payload will be
random. This commit randomizes the payload using a predefined seed, so
the random payload will be the same across benchmarks.
Using random payloads also improves accuracy of compression or encoding
impacts and we will be evaluating those changes for resouce usage
issues.
Also note that base64 is used on payload. That was needed for utf8
safety, but overhead was removed to leave payloads as defined by
benchmarks.
Base64 was chosen also due its popular usage on MIME encoding, which is
used on mail attachments (our current scenario).
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] stop trying to hit me and hit me</title>
<updated>2016-08-25T22:12:31+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-25T22:04:18+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=49d4013819733966c05178254725e6a89f1909fe'/>
<id>49d4013819733966c05178254725e6a89f1909fe</id>
<content type='text'>
TestSyncEncrypterPool.test_encrypt_doc_and_get_it_back was trying to do
an operation and asserting the number of attempts. This test is about
putting a doc on encrypter pool and getting it encrypted. If we dont
wait for the encryption operation to succeed, then complex
trial-and-error happens, but if we just ask twisted to wait for one
operation before going to the other, this is not needed.

-- Resolves: #8398
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TestSyncEncrypterPool.test_encrypt_doc_and_get_it_back was trying to do
an operation and asserting the number of attempts. This test is about
putting a doc on encrypter pool and getting it encrypted. If we dont
wait for the encryption operation to succeed, then complex
trial-and-error happens, but if we just ask twisted to wait for one
operation before going to the other, this is not needed.

-- Resolves: #8398
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] test_instance -&gt; test_initialization</title>
<updated>2016-08-23T18:53:04+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-23T18:53:04+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=bebbaad4988c4f4ec26d37791f7738ea27719fca'/>
<id>bebbaad4988c4f4ec26d37791f7738ea27719fca</id>
<content type='text'>
This isnt a test, but a benchmark. Initialization sounds more like an
operation while instance is just something.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This isnt a test, but a benchmark. Initialization sounds more like an
operation while instance is just something.
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] point issue #7370 as reason for low values</title>
<updated>2016-08-23T18:40:08+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-23T18:40:08+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=b847ffe282fe0e08783447359cbbf745a2c8f376'/>
<id>b847ffe282fe0e08783447359cbbf745a2c8f376</id>
<content type='text'>
We are using lower values on test_encdecpool due high memory usage,
described in #7370. Added a comment to explain it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We are using lower values on test_encdecpool due high memory usage,
described in #7370. Added a comment to explain it.
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] refactor load_up for readability</title>
<updated>2016-08-22T22:22:15+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-22T22:22:15+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=a64095ad5e6c6a36221444a34d8d56c0ae1c6150'/>
<id>a64095ad5e6c6a36221444a34d8d56c0ae1c6150</id>
<content type='text'>
defer parameter wasnt clear
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
defer parameter wasnt clear
</pre>
</div>
</content>
</entry>
<entry>
<title>[tests] move doc creation to setup</title>
<updated>2016-08-22T21:53:49+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-22T21:53:49+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=bad25ba9a5e7e5296b79544f50cafc47599a76b9'/>
<id>bad25ba9a5e7e5296b79544f50cafc47599a76b9</id>
<content type='text'>
Otherwise it will add unrelated overhead to results.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise it will add unrelated overhead to results.
</pre>
</div>
</content>
</entry>
<entry>
<title>[tests] remove unused new=False logic</title>
<updated>2016-08-22T21:52:51+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2016-08-22T21:52:51+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=71b13eda4ec5a577df1ccf4b07e26cbd87eaaa3e'/>
<id>71b13eda4ec5a577df1ccf4b07e26cbd87eaaa3e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
