<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/30/2013 07:38 PM, Rich Megginson
wrote:<br>
</div>
<blockquote cite="mid:52715242.1090505@redhat.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/30/2013 12:12 PM, thierry
bordaz wrote:<br>
</div>
<blockquote cite="mid:52714C17.2030200@redhat.com" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/30/2013 06:59 PM, Rich
Megginson wrote:<br>
</div>
<blockquote cite="mid:52714906.7000807@redhat.com" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/30/2013 10:47 AM, thierry
bordaz wrote:<br>
</div>
<blockquote cite="mid:52713830.1010708@redhat.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<font face="Times New Roman, Times, serif">Hello,<br>
<br>
</font>
<blockquote><font face="Times New Roman, Times, serif">This
tickets implement a test case and propose a layout of
the CI tests in the 389-ds.</font><br>
<font face="Times New Roman, Times, serif">The basic idea
is to put CI tests under:<br>
</font><tt><head>/dirsrvtests/</tt><tt><br>
</tt><tt> tickets/</tt><tt><br>
</tt><tt> standalone_test.py</tt><tt><br>
</tt><tt> m1c1_test.py</tt><tt><br>
</tt><tt> m2_c1_test.py</tt><tt><br>
</tt><tt> ...</tt><tt><br>
</tt></blockquote>
</blockquote>
<tt>Does "tickets" in this case mean "tickets for issues in
the 389 trac"?</tt><br>
</blockquote>
Yes in my mind, this directory would contains test cases for 389
tickets.<br>
</blockquote>
<br>
File or directory? I don't understand - is standalone_test.py
supposed to be a real ticket? Or will the tickets directory
contain files like ticket47424.py, ticket47332.py, etc.?<br>
<br>
</blockquote>
<br>
All tickets having a test case with a standalone topology will be in
standalone_test.py file.<br>
<br>
A ticket test case, in that file, will be a method prefixed by
"test_".<br>
The setup instance method of standalone_test.py will create a
standalone instance that will be shared by all the test case (e.g.
test_ticketxyz(self) method).<br>
The teardown will remove the instance at the end of execution of all
test cases.<br>
<br>
<blockquote cite="mid:52715242.1090505@redhat.com" type="cite">
<blockquote cite="mid:52714C17.2030200@redhat.com" type="cite"> <br>
<blockquote cite="mid:52714906.7000807@redhat.com" type="cite">
<blockquote cite="mid:52713830.1010708@redhat.com" type="cite">
<blockquote><tt> </tt><tt><br>
</tt><tt> testsuites/</tt><tt><br>
</tt><tt> acl_test.py</tt><tt><br>
</tt><tt> replication_test.py</tt><tt><br>
</tt><tt> ...</tt><font face="Times New Roman,
Times, serif"><br>
<br>
For example, test_standalone.py would setup a standalone
topology and will contain all ticket test cases that are
applicable on standalone topology.</font><br>
</blockquote>
<font face="Times New Roman, Times, serif"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://fedorahosted.org/389/attachment/ticket/47575/0001-Ticket-47575-CI-test-add-test-case-for-ticket47560.patch">https://fedorahosted.org/389/attachment/ticket/47575/0001-Ticket-47575-CI-test-add-test-case-for-ticket47560.patch</a><br>
</font></blockquote>
<br>
<font face="Times New Roman, Times, serif">So we would just
keep adding tests to the single file standalone_test.py,
every time we add a test for a trac ticket that deals with a
standalone server?<br>
</font></blockquote>
<font face="Times New Roman, Times, serif">Yes, if we have a
test case for a ticket_xyz, we may add a new class method<br>
<br>
</font>
<blockquote><tt>class Test_standAlone(object):</tt><br>
<tt> def setup(</tt><tt>self):</tt><br>
<tt> ...</tt><br>
<tt> def teardown(sel</tt><tt>f):</tt><br>
<tt> ...</tt><br>
<br>
<tt> def test_ticket_xyz(self):</tt><br>
<tt> def _test_ticket_x</tt><tt>yx_setup():</tt><br>
<tt> </tt><tt><initialization of test case
ticket xyz></tt><br>
<tt> def _test_ticket_xyz_teard</tt><tt>own():</tt><br>
<tt> <cleanup for test case ticket xyz</tt><tt>></tt><br>
<br>
<tt> _test_ticket_xyz_s</tt><tt>etup</tt><tt>()</tt><br>
<br>
<tt> <test case></tt><br>
<br>
<tt> _test_ticket_xyz_teardown</tt><tt>()<br>
<br>
<br>
<br>
<br>
<br>
def test_ticket_abc(self)<br>
...<br>
<br>
def test_final(self)<br>
<triggers the cleanup of the standalone
instance><br>
</tt></blockquote>
</blockquote>
<tt>This won't be in a separate file called ticketXYZ.py?</tt><br>
</blockquote>
No, if the test case for ticket xyz implies a standalone topology,
it will be a method in standalone_test.py<br>
<br>
<blockquote cite="mid:52715242.1090505@redhat.com" type="cite">
<blockquote cite="mid:52714C17.2030200@redhat.com" type="cite">
<blockquote><tt> </tt><br>
<br>
<br>
<br>
</blockquote>
<font face="Times New Roman, Times, serif"><br>
</font>
<blockquote cite="mid:52714906.7000807@redhat.com" type="cite"><font
face="Times New Roman, Times, serif"> <br>
</font>
<blockquote cite="mid:52713830.1010708@redhat.com" type="cite"><font
face="Times New Roman, Times, serif"> <br>
regards<br>
thierry<br>
</font> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
389-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:389-devel@lists.fedoraproject.org">389-devel@lists.fedoraproject.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-devel">https://admin.fedoraproject.org/mailman/listinfo/389-devel</a></pre>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>