certbot/certbot-apache/certbot_apache/tests
Adrien Ferrand 71ff47daad Implement a consistent realpath function in certbot.compat.filesystem (#7242)
Fixes #7115 

This PR creates a `realpath` method in `filesystem`, whose goal is to replace any call to `os.path.realpath` in Certbot. The reason is that `os.path.realpath` is broken on some versions of Python for Windows. See https://bugs.python.org/issue9949. The function created here works consistently across Linux and Windows.

As for the other forbidden functions in `os` module, our `certbot.compat.os` will raise an exception if its `path.realpath` function is invoked, and using the `os` module from Python is forbidden from the pylint check implemented in our CI.

Every call to `os.path.realpath` is corrected in `certbot` and `certbot-apache` modules.

* Forbid os.path.realpath

* Finish implementation

* Use filesystem.realpath

* Control symlink loops also for Linux

* Add a test for forbidden method

* Import a new object from os.path module

* Use same approach of wrapping than certbot.compat.os

* Correct errors

* Fix dependencies

* Make path module internal
2019-07-18 14:31:39 -07:00
..
apache-conf-files [Windows|Linux] Launch integration tests on Pebble without Docker (#7157) 2019-07-10 14:29:57 -07:00
testdata Fix CentOS 6 installer issue (#6784) 2019-04-02 09:26:58 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
autohsts_test.py Update to Pylint 1.9.4 and corrections 2019-04-09 09:22:19 +02:00
centos6_test.py Refactor augeas_configurator.py functionality to configurator.py and parser.py accordingly. (#7181) 2019-06-28 08:39:13 -07:00
centos_test.py Implement a consistent realpath function in certbot.compat.filesystem (#7242) 2019-07-18 14:31:39 -07:00
complex_parsing_test.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
configurator_reverter_test.py Simplify and deprecate viewing config changes (#7198) 2019-07-02 17:20:12 -07:00
configurator_test.py Implement a consistent realpath function in certbot.compat.filesystem (#7242) 2019-07-18 14:31:39 -07:00
debian_test.py Implement a consistent realpath function in certbot.compat.filesystem (#7242) 2019-07-18 14:31:39 -07:00
display_ops_test.py Apache plugin wildcard support for ACMEv2 (#5608) 2018-02-28 11:31:47 -08:00
entrypoint_test.py Implements specific overrides for Fedora 29+ in Apache plugin (#6988) 2019-05-01 03:21:10 +03:00
fedora_test.py Implement a consistent realpath function in certbot.compat.filesystem (#7242) 2019-07-18 14:31:39 -07:00
gentoo_test.py Implement a consistent realpath function in certbot.compat.filesystem (#7242) 2019-07-18 14:31:39 -07:00
http_01_test.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
obj_test.py Test coverage & fix 2016-06-25 12:06:43 -07:00
parser_test.py Refactor augeas_configurator.py functionality to configurator.py and parser.py accordingly. (#7181) 2019-06-28 08:39:13 -07:00
util.py Refactor augeas_configurator.py functionality to configurator.py and parser.py accordingly. (#7181) 2019-06-28 08:39:13 -07:00