File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 158158 bk ds {:trigger-id trigger-id})))
159159 (finally (component/stop sys'))))))
160160
161+ (def invalid-statement-spec-error-str
162+ " Reaction Invalid Statement Error - Spec Error: #:statement{:foo \" mailto:bob@example.com\" } - failed: (contains? % :statement/actor) spec: :xapi-schema.spec/statement
163+ #:statement{:foo \" mailto:bob@example.com\" } - failed: (contains? % :statement/verb) spec: :xapi-schema.spec/statement
164+ #:statement{:foo \" mailto:bob@example.com\" } - failed: (contains? % :statement/object) spec: :xapi-schema.spec/statement
165+ " )
166+
161167(deftest query-statement-reactions-invalid-statement-error-test
162168 ; ; Turn off instrumentation for this one
163169 ; ; This will keep the instrumentation error from clobbering
192198 [{:reaction-id reaction-id
193199 :trigger-id trigger-id
194200 :error
195- {:type " ReactionInvalidStatementError" ,
196- :message
197- " Reaction Invalid Statement Error - Spec Error: #:statement{:foo \" mailto:bob@example.com\" } - failed: (contains? % :statement/actor) spec: :xapi-schema.spec/statement
198- #:statement{:foo \" mailto:bob@example.com\" } - failed: (contains? % :statement/verb) spec: :xapi-schema.spec/statement
199- #:statement{:foo \" mailto:bob@example.com\" } - failed: (contains? % :statement/object) spec: :xapi-schema.spec/statement
200- " }}]}
201+ {:type " ReactionInvalidStatementError" ,
202+ :message invalid-statement-spec-error-str}}]}
201203 (qr/query-statement-reactions
202204 bk ds {:trigger-id trigger-id})))
203205 (finally (component/stop sys'))))))
You can’t perform that action at this time.
0 commit comments