Skip to content

Commit

Permalink
Merge pull request rockstor#2614 from phillxnet/2613_Cherry-pick_-_Up…
Browse files Browse the repository at this point in the history
…date_unit_tests_re_recent_SSL_Cert_update_changes

Update unit tests re recent SSL Cert update changes rockstor#2613
  • Loading branch information
phillxnet authored Jul 11, 2023
2 parents 9fdeff3 + e3648a8 commit 7051ade
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/rockstor/storageadmin/tests/test_tls_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
from mock import patch
from storageadmin.tests.test_api import APITestMixin

"""
cd /opt/rockstor/src/rockstor
export DJANGO_SETTINGS_MODULE=settings
poetry run django-admin test -p test_tls_certificate.py -v 2
"""

class TlscertificateTests(APITestMixin):
# Proposed fixture "test_tls_certificate.json" was "fix1.json"
Expand All @@ -35,10 +40,10 @@ def setUpClass(cls):
cls.patch_move = patch("storageadmin.views.tls_certificate.move")
cls.mock_move = cls.patch_move.start()

cls.patch_superctl = patch(
"storageadmin.views.tls_certificate.superctl"
cls.patch_systemctl = patch(
"storageadmin.views.tls_certificate.systemctl"
) # noqa E501
cls.mock_superctl = cls.patch_superctl.start()
cls.mock_systemctl = cls.patch_systemctl.start()

cls.patch_run_command = patch(
"storageadmin.views.tls_certificate.run_command"
Expand Down

0 comments on commit 7051ade

Please sign in to comment.