Self-edit: 5 new tests (apply success/not-found/file-not-found, parse-location x2) Config-manager: 4 new tests (get-oc-config-dir, save-providers, configure-provider) Gateway-manager: 2 new tests (multiple-platforms, registration) Tier 1 Chaos: Verified org files pass structural balance Note: Some tests have issues - config tests use functions not exported, one self-edit test has search function issue. Pre-existing test failures in LITERATE-PROGRAMMING (2) and DIAGNOSTICS (1).
24 lines
1008 B
Common Lisp
24 lines
1008 B
Common Lisp
(defpackage :opencortex-gateway-manager-tests
|
|
(:use :cl :fiveam :opencortex)
|
|
(:export #:gateway-suite))
|
|
|
|
(in-package :opencortex-gateway-manager-tests)
|
|
|
|
(def-suite gateway-suite :description "Verification of the Gateway Manager skill")
|
|
|
|
(in-suite gateway-suite)
|
|
|
|
(test test-gateway-registration
|
|
"Verify that the skill can register a new gateway metadata block."
|
|
(let ((opencortex::*gateways* nil))
|
|
(opencortex:skill-gateway-register :telegram '(:status :unverified))
|
|
(is (getf (getf opencortex::*gateways* :telegram) :status))))
|
|
|
|
(test test-gateway-multiple-platforms
|
|
"Verify that multiple gateways can be registered simultaneously."
|
|
(let ((opencortex::*gateways* nil))
|
|
(opencortex:skill-gateway-register :telegram '(:status :verified :token "abc123"))
|
|
(opencortex:skill-gateway-register :signal '(:status :unverified))
|
|
(is (eq (getf (getf opencortex::*gateways* :telegram) :status) :verified))
|
|
(is (eq (getf (getf opencortex::*gateways* :signal) :status) :unverified))))
|