summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):