Dropped deprecated flags from commands (#7482)

This pull request addresses #7451 by removing the deprecated flags.

* Dropped deprecated flags from commands

* Updated changelog for dropped flags and deleted outdated tests

* removed init-script part of apache test
This commit is contained in:
Brandon Moore
2019-11-04 09:50:57 -08:00
committed by Brad Warren
parent fffa74edb2
commit 1c05b9bd07
6 changed files with 1 additions and 24 deletions
-3
View File
@@ -1246,9 +1246,6 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis
default=flag_default("autorenew"), dest="autorenew",
help="Disable auto renewal of certificates.")
helpful.add_deprecated_argument("--agree-dev-preview", 0)
helpful.add_deprecated_argument("--dialog", 0)
# Populate the command line parameters for new style enhancements
enhancements.populate_cli(helpful.add)
-10
View File
@@ -265,16 +265,6 @@ class ParseTest(unittest.TestCase): # pylint: disable=too-many-public-methods
self.assertTrue(namespace.must_staple)
self.assertTrue(namespace.staple)
def test_no_gui(self):
args = ['renew', '--dialog']
with mock.patch("certbot.util.logger.warning") as mock_warn:
namespace = self.parse(args)
self.assertTrue(namespace.noninteractive_mode)
self.assertEqual(mock_warn.call_count, 1)
self.assertTrue("is deprecated" in mock_warn.call_args[0][0])
self.assertEqual("--dialog", mock_warn.call_args[0][1])
def _check_server_conflict_message(self, parser_args, conflicting_args):
try:
self.parse(parser_args)
-5
View File
@@ -1381,11 +1381,6 @@ class MainTest(test_util.ConfigTestCase): # pylint: disable=too-many-public-met
jose.ComparableX509(cert),
mock.ANY)
def test_agree_dev_preview_config(self):
with mock.patch('certbot.main.run') as mocked_run:
self._call(['-c', test_util.vector_path('cli.ini')])
self.assertTrue(mocked_run.called)
@mock.patch('certbot.log.post_arg_parse_setup')
def test_register(self, _):
with mock.patch('certbot.main.client') as mocked_client: