-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AE-2284: Add
anonymize-and-delete-expired
internal api endpoint
- Loading branch information
1 parent
93e56de
commit 50a6cda
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
etp-core/etp-backend/src/test/clj/solita/etp/api/energiatodistus_destruction_test.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns solita.etp.api.energiatodistus-destruction-test | ||
(:require | ||
[clojure.test :as t] | ||
[ring.mock.request :as mock] | ||
[solita.etp.test-system :as ts])) | ||
|
||
(t/use-fixtures :each ts/fixture) | ||
|
||
(t/deftest can-call-energiatodistus-expiration-endpoint | ||
(t/testing "Can call energiatodistus expiration endpoint" | ||
(let [response (ts/handler (-> (mock/request :post "/api/internal/energiatodistukset/anonymize-and-delete-expired") | ||
(mock/header "Accept" "application/json")))] | ||
(t/is (= (:status response) 200))))) |