Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
AE-2036: Test that generation of aineistot returns correct response
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-juhohaa committed Dec 8, 2023
1 parent 2f59394 commit 21e21d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etp-backend/src/test/clj/solita/etp/aineisto_api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,8 @@
(mock/header "X-Forwarded-For" "192.168.2.100")
(mock/header "Accept" "application/json")))]
(t/is (= (:status response) 403)))))))

(t/deftest generate-aineistot
(t/testing "Aineistot generation endpoint responds with status code 200"
(let [response (ts/handler (-> (mock/request :post "/api/internal/aineistot/update")))]
(t/is (= (:status response) 200)))))

0 comments on commit 21e21d1

Please sign in to comment.