Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport][ipa-4-6] Check if issuer DN is updated after self-signed > external-ca #2063

Closed
wants to merge 1 commit into from

Conversation

mrizwan93
Copy link
Contributor

@mrizwan93 mrizwan93 commented Jun 25, 2018

This test checks if issuer DN is updated properly after CA is
renewed from self-signed to external-ca

related ticket: https://pagure.io/freeipa/issue/7316

Signed-off-by: Mohammad Rizwan Yusuf myusuf@redhat.com

Replaced hardcoded issuer CN for external ca with constant

Signed-off-by: Mohammad Rizwan Yusuf myusuf@redhat.com
Reviewed-By: Christian Heimes cheimes@redhat.com
Reviewed-By: Florence Blanc-Renaud frenaud@redhat.com

@mrizwan93 mrizwan93 changed the title Check if issuer DN is updated after self-signed > external-ca [Backport][ipa-4-6] Check if issuer DN is updated after self-signed > external-ca Jun 25, 2018
@tiran
Copy link
Member

tiran commented Jun 25, 2018

Pylint errors:

************* Module ipatests.test_integration.test_external_ca
ipatests/test_integration/test_external_ca.py:28: [E0611(no-name-in-module), ] No name 'create_external_ca' in module 'ipatests')
ipatests/test_integration/test_external_ca.py:28: [E0401(import-error), ] Unable to import 'ipatests.create_external_ca')
ipatests/test_integration/test_external_ca.py:28: [W0611(unused-import), ] Unused ExternalCA imported from ipatests.create_external_ca)

Before you push a PR, please always run make fastcheck and fix all errors.

@Tiboris
Copy link
Member

Tiboris commented Jun 25, 2018

Backport of #2049

@Tiboris Tiboris added the ack Pull Request approved, can be merged label Jun 25, 2018
Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ModuleNotFoundError: No module named 'ipatests.pytest_plugins.integration.create_external_ca.py'; 'ipatests.pytest_plugins.integration.create_external_ca' is not a package

@mrizwan93
Copy link
Contributor Author

mrizwan93 commented Jun 25, 2018

@tiran Hi,

we need to move create_external_ca.py to freeipa/ipatests like we have in master branch https://github.com/freeipa/freeipa/blob/master/ipatests/create_external_ca.py

but I am afraid if the path is used in other test suits.

what you suggest?

@mrizwan93
Copy link
Contributor Author

my bad :(
ipatests.pytest_plugins.integration.create_external_ca.py

fixed.

def create_ca(self, cn='example.test'):
def __init__(self, days=365):
self.now = datetime.datetime.utcnow()
self.delta = datetime.timedelta(days=days)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now and delta are not used in this branch. Please remove def __init__ again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed.
Thanks.

This test checks if issuer DN is updated properly after CA is
renewed from self-signed to external-ca

related ticket: https://pagure.io/freeipa/issue/7316

Signed-off-by: Mohammad Rizwan Yusuf <myusuf@redhat.com>

Replaced hardcoded issuer CN for external ca with constant

Signed-off-by: Mohammad Rizwan Yusuf <myusuf@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
@tiran tiran added the pushed Pull Request has already been pushed label Jun 26, 2018
@tiran
Copy link
Member

tiran commented Jun 26, 2018

ipa-4-6:

  • 39350af Check if issuer DN is updated after self-signed > external-ca

@tiran tiran closed this Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants