Skip to content

Commit 6ec5396

Browse files
committed
Merge remote-tracking branch 'origin/master' into edge
2 parents a862676 + aa0e9d8 commit 6ec5396

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

mig/install/apache-MiG-template.conf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,8 +1779,9 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
17791779
<IfDefine !SID_FQDN>
17801780
<IfDefine BASE_FQDN>
17811781
# NOTE: the contents of this static file can be generated with:
1782-
# cd __MIG_CODE__ && python shared/httpsclient.py | \
1783-
# grep -A 80 "xml version" > __MIG_STATE__/wwwpublic/oiddiscover.xml
1782+
# cd __MIG_BASE__ && python mig/server/genoiddiscovery.py > \
1783+
# __MIG_STATE__/wwwpublic/oiddiscover.xml
1784+
# when openid is enabled in MiGserver.conf
17841785
Header always set X-XRDS-Location "https://${BASE_FQDN}/public/oiddiscover.xml"
17851786
</IfDefine>
17861787
</IfDefine>
@@ -2380,8 +2381,9 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
23802381
<IfDefine !SID_FQDN>
23812382
<IfDefine BASE_FQDN>
23822383
# NOTE: the contents of this static file can be generated with:
2383-
# cd __MIG_CODE__ && python shared/httpsclient.py | \
2384-
# grep -A 80 "xml version" > __MIG_STATE__/wwwpublic/oiddiscover.xml
2384+
# cd __MIG_BASE__ && python mig/server/genoiddiscovery.py > \
2385+
# __MIG_STATE__/wwwpublic/oiddiscover.xml
2386+
# when openid is enabled in MiGserver.conf
23852387
Header always set X-XRDS-Location "https://${BASE_FQDN}/public/oiddiscover.xml"
23862388
</IfDefine>
23872389
</IfDefine>

mig/install/mig-user/.emacs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@
120120
; pip install autopep8
121121
; wget https://raw.githubusercontent.com/paetzke/py-autopep8.el/master/py-autopep8.el \
122122
; -O ~/.emacs.d/site-lisp/py-autopep8.el
123-
;
123+
;
124+
; NOTE: we adjust max line length and disable import mangling as it breaks
125+
; some migrid modules.
124126
(require 'py-autopep8)
125127
(add-hook 'python-mode-hook 'py-autopep8-enable-on-save)
126-
(setq py-autopep8-options '("--max-line-length=79"))
128+
(setq py-autopep8-options '("--max-line-length=80 --ignore E402"))
127129

128130
;; Prefer espresso mode from
129131
;; http://download.savannah.gnu.org/releases-noredirect/espresso/espresso.el

tests/test_mig_shared_install.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,29 @@
3434
import sys
3535

3636
sys.path.append(os.path.realpath(os.path.join(os.path.dirname(__file__), ".")))
37+
3738
from support import MigTestCase, testmain, temppath, cleanpath, fixturepath
3839

39-
from mig.shared.install import \
40-
generate_confs
40+
from mig.shared.install import generate_confs
4141

4242
class DummyPwInfo:
43+
"""Wrapper to assist in create_dummy_gpwnam"""
44+
4345
def __init__(self, pw_uid, pw_gid):
4446
self.pw_uid = pw_uid
4547
self.pw_gid = pw_gid
4648

4749

4850
def create_dummy_gpwnam(pw_uid, pw_gid):
51+
"""Helper to mimic pwd.getpwnam /etc/passwd lookup for arbitrary users"""
52+
4953
dummy = DummyPwInfo(pw_uid, pw_gid)
5054
return lambda _: dummy
5155

5256

5357
class MigSharedInstall__generate_confs(MigTestCase):
58+
"""Unit test helper for the migrid code pointed to in class name"""
59+
5460
def test_creates_output_directory_and_adds_active_symlink(self):
5561
symlink_path = temppath('confs', self)
5662
cleanpath('confs-foobar', self)

0 commit comments

Comments
 (0)