File: ns2.clj

package info (click to toggle)
trapperkeeper-clojure 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 964 kB
  • sloc: sh: 189; xml: 73; makefile: 25; java: 5
file content (20 lines) | stat: -rw-r--r-- 791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(ns puppetlabs.trapperkeeper.services-namespaces-test.ns2
  (:require
    [clojure.test :refer :all]
    [puppetlabs.kitchensink.testutils.fixtures :refer [with-no-jvm-shutdown-hooks]]
    [puppetlabs.trapperkeeper.core :as trapperkeeper]
    [puppetlabs.trapperkeeper.services-namespaces-test.ns1 :as ns1]
    [puppetlabs.trapperkeeper.testutils.bootstrap :refer [bootstrap-services-with-empty-config]]
    [schema.test :as schema-test]))

(use-fixtures :once schema-test/validate-schemas with-no-jvm-shutdown-hooks)

(trapperkeeper/defservice foo-service
  ns1/FooService
  []
  (foo [this] "foo"))

(deftest test-service-namespaces
  (testing "can boot service defined in different namespace than protocol"
    (bootstrap-services-with-empty-config [foo-service])
    (is (true? true))))