From e022ef0358725ab9292b4a8f5bb863f4cba7b1e5 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Feb 13 2019 22:03:22 +0000 Subject: Pass no-name-constraint to repospanner ca init As explained in the documentation and error messages when run with Go1.9 compiled binaries, there's a Go bug in Go1.9 and earlier that breaks the name constraint. This should make the tests work on EL7 compiled binaries of repoSpanner. Signed-off-by: Patrick Uiterwijk --- diff --git a/tests/test_pagure_repospanner.py b/tests/test_pagure_repospanner.py index 9fe1abf..d7f3be4 100644 --- a/tests/test_pagure_repospanner.py +++ b/tests/test_pagure_repospanner.py @@ -188,7 +188,8 @@ class PagureRepoSpannerTests(tests.Modeltests): with open(os.path.join(self.path, 'repospanner', 'keylog'), 'w') as keylog: # Create the CA - self.run_cacmd(keylog, 'init', 'repospanner.local') + self.run_cacmd(keylog, 'init', 'repospanner.local', + '--no-name-constraint') # Create the node cert self.run_cacmd(keylog, 'node', 'regiona', 'nodea') # Create the admin cert