#49156 Clean up test suites dir structure and docstrings
Closed: wontfix 7 years ago Opened 8 years ago by spichugi.

Issue Description

We have a lot of plugin directories in dirsrvtests/tests/suites:
dynamic_plugins
[PluginName]_plugin - 27 directories
While we are in the process of creating tickets for the porting sprint, it would be nice to have an organised structure. As discussed on the Engineering/QE Sync Up meeting we need to move all of them to 'plugins' dir.

Also, as a part of test suites cleanup, we should organise test plans in the docstrings and IDs to an each test case (can be generated with Python 'import uuid; uuid.uuid4()').
create_test.py script should be fixed too and it should check if the ID is unique throughout the tests.


Metadata Update from @spichugi:
- Issue assigned to spichugi

8 years ago

Metadata Update from @spichugi:
- Custom field type adjusted to defect

8 years ago

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to review

8 years ago

ack from me about the reorg of tests, I think we really should improve uor plugin coverage here though.

To ssh://pagure.io/389-ds-base.git
f77e777..a51026f master -> master
commit a51026f
Author: Simon Pichugin spichugi@redhat.com
Date: Thu Mar 2 16:53:55 2017 +0100

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to ack (was: review)

8 years ago
ImportError while importing test module '/export/tests/suites/replication/acceptance_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
suites/replication/acceptance_test.py:12: in <module>
    from lib390.topologies import topology_m4 as topo
E   ImportError: No module named lib390.topologies

To ssh://pagure.io/389-ds-base.git
ef3595d..47cfac8 master -> master
commit 47cfac8
Author: Simon Pichugin spichugi@redhat.com
Date: Thu Mar 9 13:52:46 2017 +0100

There are some weird characters in the docstrings that prevent byte compiling:

Bytecompiling .py files below /builddir/build/BUILDROOT/389-ds-base-1.3.6.1-20170309git47cfac8.fc25.x86_64/usr/lib/python2.7 using /usr/bin/python2.7
Compiling /builddir/build/BUILDROOT/389-ds-base-1.3.6.1-20170309git47cfac8.fc25.x86_64/usr/lib/python2.7/site-packages/dirsrvtests/tests/suites/paged_results/paged_results_test.py ...
Sorry: TypeError: compile() expected string without null bytes

Pagure considers this file a binary:
https://pagure.io/389-ds-base/blob/master/f/dirsrvtests/tests/suites/paged_results/paged_results_test.py

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to review (was: ack)

8 years ago

Your patch appears to be a binary file. Its not readable

Your patch appears to be a binary file. It's not readable
I've created it with 'git format-patch -1' and then I've attached it with 'Choose Files'.
I did it before like that. Maybe Pagure somehow transform it? Or I do something wrong.

It is downloadable, though, and you can open it with 'vim' afterwards.

It's not readable by some editors that can't handle null byte in the middle of the file.
I applied the patch and build was successfull:

+ exit 0
Finish: rpmbuild 389-ds-base-1.3.6.1-20170309git8893cf1.fc24.src.rpm
Finish: build phase for 389-ds-base-1.3.6.1-20170309git8893cf1.fc24.src.rpm
INFO: Done(dist/srpms/389-ds-base-1.3.6.1-20170309git8893cf1.fc24.src.rpm) Config(fedora-25-x86_64) 4 minutes 41 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-25-x86_64/result
Finish: run

ack

Metadata Update from @vashirov:
- Custom field reviewstatus adjusted to ack (was: review)

8 years ago

To ssh://pagure.io/389-ds-base.git
47cfac8..57cf1cd master -> master
commit 57cf1cd
Author: Simon Pichugin spichugi@redhat.com
Date: Thu Mar 9 16:47:42 2017 +0100

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to review (was: ack)

8 years ago

Metadata Update from @spichugi:
- Custom field reviewstatus reset

8 years ago

Please, indent the lines for a proper RST format:

324 +    :expectedresults: a. Password expiry warning time should not be returned
325               b. Password expiry warning time should be returned

337 @@ -428,7 +428,7 @@ def test_default_behavior(topology_st, global_policy_default, add_user):
338              2. User entry for binding to the server
339      :steps: 1. Bind as the user
340              2. Request the control for the user
341 -    :assert: Password expiry warning time should be returned by the
342 +    :expectedresults: Password expiry warning time should be returned by the
343               server by the server since passwordMaxAge and
344               passwordWarning are set to the same value

Also, please, check your commit subject message so it will be proper formed. Basicly, you need to carry about these rules:

  • Limit the subject line to 50 characters (you have 88)
  • Use the imperative mood in the subject line

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to new

8 years ago

To ssh://pagure.io/389-ds-base.git
1155d50..092f08a master -> master
commit 092f08a
Author: Amita Sharma amsharma@redhat.com
Date: Mon Mar 27 12:15:45 2017 +0530

Metadata Update from @mreynolds:
- Custom field reviewstatus reset (from new)
- Issue set to the milestone: 1.3.7.0

7 years ago

Metadata Update from @spichugi:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field version adjusted to None
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

7 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2215

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

4 years ago

Log in to comment on this ticket.

Metadata