summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2021-10-08 18:18:12 -0400
committerJeff Forcier <jeff@bitprophet.org>2021-10-08 20:40:08 -0400
commit3128fff093f23e063e30330a90777357140b950a (patch)
tree5a3407c91494fc9a64c00981e469686985e9bba1
parent36c8a0e944530efd35f8896223293324cce986e0 (diff)
downloadparamiko-3128fff093f23e063e30330a90777357140b950a.tar.gz
Try getting Kerberos working on Circle
Sadly it fails. Unclear whether I'm missing something, or if this represents a diff between the Ubuntu versions Travis last used and what Circle's images are on. I did get the tests themselves truly running, and while I trimmed back the deps a bit vs Travis, it's only as some of them were redundant/required by other packages we install here. Leaving it defined but not actually used in the workflow.
-rw-r--r--.circleci/config.yml29
-rw-r--r--tests/test_gssapi.py7
2 files changed, 36 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index d51b74cf..a0f97621 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,8 +1,32 @@
version: 2.1
+
orbs:
orb: invocations/orb@dev:debuggery
+
+jobs:
+ kerberos:
+ executor:
+ name: orb/default
+ version: "3.6"
+ steps:
+ - orb/setup
+ # Required to actually see all of universe/multiverse :(
+ - run: sudo apt update
+ # System reqs to install/build gssapi c-ext & friends (who only
+ # appear to offer wheels for Windows)
+ - run: sudo apt install -y libkrb5-dev krb5-admin-server krb5-kdc
+ # Our gssapi-supporting flavor, eg gssapi, pyasn1 etc
+ - run: pip install -e '.[gssapi]'
+ # Test-only deps for Kerberos (if they are importable it triggers
+ # running the kerberos tests instead of skipping them)
+ - run: pip install k5test
+ # Do the thing, win the points!
+ - run: inv test
+ - orb/debug
+
+
workflows:
main:
jobs:
@@ -23,6 +47,11 @@ workflows:
# TODO: I don't see a nicer way to do this that doesn't require
# making the orb know too much about its client code...
pip-overrides: ["cryptography==2.5", "cryptography==3.4"]
+ # Kerberos tests. Currently broken :(
+ #- kerberos:
+ # name: Test 3.6 w/ Kerberos support
+ # # No point testing k5 if base tests already fail
+ # requires: ["Test 3.6 (w/ coverage, latest crypto)"]
- orb/test-release:
name: Release test
- orb/test:
diff --git a/tests/test_gssapi.py b/tests/test_gssapi.py
index 308caa93..acdc7c82 100644
--- a/tests/test_gssapi.py
+++ b/tests/test_gssapi.py
@@ -26,6 +26,13 @@ import socket
from .util import needs_gssapi, KerberosTestCase, update_env
+#
+# NOTE: KerberosTestCase skips all tests if it was unable to import k5test
+# third-party library. That's the primary trigger for whether this module
+# effectively gets run or not. See tests/util.py for other triggers (a set of
+# env vars a human might have defined).
+#
+
@needs_gssapi
class GSSAPITest(KerberosTestCase):