File tree 3 files changed +14
-14
lines changed
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
(defproject meson " 0.1.0-SNAPSHOT"
2
2
:description " Clojure Client Library for the Mesos HTTP API"
3
- :url " https://github.com/oubiwann /meson"
3
+ :url " https://github.com/clojusc /meson"
4
4
:license {:name " Apache License, Version 2.0"
5
5
:url " http://www.apache.org/licenses/LICENSE-2.0" }
6
6
:dependencies [[org.clojure/clojure " 1.8.0" ]
Original file line number Diff line number Diff line change 2
2
(:require [clojusc.twig :as logger]
3
3
[meson.const :as const]))
4
4
5
- (def user-agent (str " Meson REST Client/"
6
- const/client-version
7
- " (Clojure "
8
- const/clj-version
9
- " ; Java "
10
- const/java-version
11
- " ) (+"
12
- const/project-url
13
- " )" ))
5
+ (def user-agent
6
+ (format " Meson REST Client/%s (Clojure %s; Java %s) (+%s)"
7
+ const/client-version
8
+ const/clj-version
9
+ const/java-version
10
+ const/project-url))
14
11
15
12
(def fields
16
13
" Fields are maintained separately from the record so that they may be
Original file line number Diff line number Diff line change 3
3
[meson.client :as client]))
4
4
5
5
(deftest user-agent
6
- (is (= client/user-agent
7
- (str " Meson REST Client/0.1.0-SNAPSHOT "
8
- " (Clojure 1.8.0; Java 1.8.0_45-internal) "
9
- " (+https://github.com/oubiwann/meson)" ))))
6
+ (is
7
+ (not
8
+ (nil?
9
+ (re-matches
10
+ #"Meson REST Client/.* \( Clojure .*; Java .*\) \(\+ https://.*\) "
11
+ client/user-agent)))))
10
12
11
13
(deftest ->base-client
12
14
(let [c (client/->base-client )]
21
23
(deftest get-url
22
24
(let [c (client/->base-client {:master " myhost:8080" })]
23
25
(is (= (client/get-url c) " http://myhost:8080/api/v1" ))))
26
+
You can’t perform that action at this time.
0 commit comments