-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
# Tests | ||
|
||
|
||
## Run unit tests | ||
|
||
![Coverage](../.github/badges/jacoco.svg) | ||
|
||
Run tests for the ebics-java-client on linux - it mounts sources into a gradle docker container with java and the maven build tool - so you do not need to install java or gradle on your local machine: | ||
|
||
git clone https://github.com/element36-io/ebics-java-service.git | ||
# or git clone [email protected]:element36-io/ebics-java-service.git | ||
|
||
cd ebics-java-service | ||
# we test on hyperfridge branch | ||
git checkout hyperfridge | ||
docker run -it -v $PWD:/app -w /app gradle:6-jdk11 gradle clean test | ||
|
||
|
||
|
@@ -18,25 +23,14 @@ Test for vulnerabilities `gradle dependencyCheckAggregate`- see report in `./bui | |
|
||
If you are interested in the Ebics Client implementation as well, look [here](https://github.com/element36-io/ebics-java-client/blob/master/README.md). | ||
|
||
# Run with docker | ||
|
||
Checkout [hyperfridge](https://github.com/element36-io/hyperfridge-r0) and [banking backend](https://github.com/element36-io/LibEuFin) at same directory as ebics-java-service to build images locally: | ||
|
||
git clone [email protected]:element36-io/LibEuFin.git | ||
cd LibEuFin | ||
./bootstrap | ||
cd .. | ||
git cline [email protected]:element36-io/XXXXXXX.git | ||
# Run and test with Docker | ||
|
||
Build on Linux: | ||
This starts several docker images: ebics-java-service => libeufin => Postgres. We use 'watchdog.sh' from the hyperfridge image to scan directory for new banking documents which triggers generation of STARK proofs. | ||
|
||
cd ebics-java-service | ||
docker compose build | ||
|
||
On Mac: | ||
docker compose up | ||
|
||
cd ebics-java-service | ||
DOCKERFILE=DockerfileMacOs docker compose build | ||
You should see the setup process of demo-accounts, lauching [Open API/Swagger](http://localhost:8093/ebics/swagger-ui/?url=/ebics/v2/api-docs/) and [banking bankend](manual/manual.md) which we will look at later. | ||
|
||
|
||
## Test API and download ZK proof | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh8lqYMCn4etXrj8bCmRN | ||
d5k7HO2LFptyMXH9pbW6jGCBZvkOMLAV5JXaRkjygX53PgQ9UMH/4RxIgyFLurxY | ||
PnqWdV+BXn1hFPtUBGnRLHvXMpq4lcQ4NUq7u6U0QXr8WIMuYV1XB+HCSweJiWhD | ||
wPMKHjIuqnW0uamoPIPmj6ZYUdyTQXkH0rtCIIYge0dQ0d47w95o+DSYn2ZX6FBx | ||
4BpcoVHRs7sK+HyURJU6dgtdnuC0p5DD1ageExUuUhSht5QBXVycxmOMmxIGyfRi | ||
Do7WEIzxReMshVZt2UlVqM6Ok/GYGEePt8k46foHN4YRDHEQz8UyAD5yXa+G+g+l | ||
LQIDAQAB | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhTb+twnr32d1o64YeMPo | ||
zjFHZR8TDRpVJP3KkCIAXpJ+q5nkz0fYbOnCOgkYUru1uCdYYUWk/f+g8QDoOdDs | ||
XMtgA2XElbOhsgKdJQve3dbJN8P76a8pgL3hIH0F3AEEZ5jFqQuxDTYZKOP9BgBw | ||
GaqNjc8AA9O/f3q3twq0Ns8Ty/MX6NmCKrE0ma1Xx9KjMOYVbrvw64ZFkfDPEFG0 | ||
4XZmgGnDSqJwOv1e0f3LnwI0zMevtYgu7EZeER/Am0BR6c93miLXz4SWv9RbTFWO | ||
GQh0412wI8QVRr59iNJ9o1dCvoxcEiv3GaYiFlu3FGw8uwT/WfCAI/Qj8Q+oJqI+ | ||
+wIDAQAB | ||
-----END PUBLIC KEY----- |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr11VRbdiRkzBARVAe2i1 | ||
bZJWEV3c+nVNCJP7Sp+vF3il0OVeoUNBeqwHUr7CPUWTchQAWQE3eTFmvuOxonUX | ||
fOFLcRLRkcx9WAyQPHFnxV4KDpETvz+JRUBJQ+z7t5EGfVkaaZyYHcIph76lLmKS | ||
O1IeArWp+TcqgWHzOUUDGIlnILQB4q6QJME10OEsXQw/XPue5sm8t2sGtxvLxjGp | ||
+dy1J5xJ0NAdX38CcHK7oJ8+Ku6LyV/Zs4gsYGQ8NtK7oZGl8rc9h/VvMayYwpK8 | ||
2CmRBPoQ09w+Va7HpjT3MQlv9m35pCgGA2hvjufgG+UDBnRyR6c7avteLok7MYk7 | ||
wQIDAQAB | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuFjrCHhiDl00bxPZ/4BL | ||
iU60liYhkQytVK3hyq5mB36ix1VORKwBP7pGZl/BHRqT/1IJSEsfJAFVngGUSr75 | ||
ivTeVYSQL+PAAO206rkLh4mBJ4dhZcHiFuxEyCY2LEOq3vywW+j6dMdInraCSyl6 | ||
+hUMMKty0s3DKwBnD8iigEW1hbkeO6WXlr4/As7Wdq57WHVqb1OcAj67+vCa7yGB | ||
N2leAohumtKcjKKmpKOLvB3ipuJf7/hAZbQwZUcTk3+2VIwB6Aj61+ppun0M6YV9 | ||
NDQcMcGQEP1z+VNvapGiMfjHJftD7YANK7K31bwc/OmVtHXzHbBciGjoasPXPMJB | ||
zQIDAQAB | ||
-----END PUBLIC KEY----- |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDF7hoYeRuZv7z2 | ||
0sdblQSwG8J3BUmU3OKgowGGUkeIdiXC1fH1giKnPla9fucKSOZYSMPem51wyms/ | ||
NDHJL75WMN2+u9/cuFnMlxGhEcIvamKjNNpdZl3/dTY510X9Mp+GDSpGFvjW/sJn | ||
sgCBT26CgQ4G04AvezMiFu9GXRzliGjjw+H9+wzr9Y6GdhNtmYOibJxtr5O627uB | ||
weggLdlFpANEAkLwnEPVVrThcdvrRTnCkrhtYv9m8tqFeULKjGamLuIP+AzL5ZHI | ||
H/lPW6PlzgLdzaXbI6mVGoUmL8TlrMY3tHeqqcrIJdK3FcV8nUmfjpgZVWNTAnL5 | ||
ZsgpukR3AgMBAAECggEALLspxJwiI7YUY4exLD5aR96OLU3RmkXtJbaREqUnq2xg | ||
Dk9BlmVppXhOLBcw6b8d55fSRE3Q3/uvDyKhmcEjd+ElTASzi/NRwA3oGwmjZAnb | ||
7txz+SW4WpJHxfyjwZweNzJkemCYriX3E25D9PVZmT7HR72mu5RRMwQR4UoLzMeH | ||
+8BDilRx/Sx7VkUnUfoNhJ9vzBGwfU+5oD3fzigpQ8YAtdZPh96LOlenOyCBuovz | ||
8pWvYTm5DRvID0qpvIgLVz1uNJW7avTaYRy/yN+PKx9YxowHu0jzfeSimfVnUIhY | ||
kf+5PBkKok6XkswsHNE5kdGFGYKR7SjmQMhPXxwgOQKBgQD5jR92BSgc3uVmyk4t | ||
xFkTYaC7imS4OmwzBLI9wClo+Np1iMLJOxAZ6M9SUpQL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VAh52DAuTQn | ||
I0u0ukmlUykL22QBAw9YGyGgGL2thLihDz5xnHU4nqj8j+16Op7Ubm6fpQKBgBDK | ||
PehFhKE+D4sp1WSl5pW6eeQZZrz8cp5LmeEjZTY8/Vry0qVwu3NBgh4VX2nFiuf7 | ||
eKpDsMPEjXmFQzWWpZELhOlPpp1o81fgWXU932l5Y0/yLC4gGj2Ts+X8sdNO25Fl | ||
WG+UeTzChztTnBbd9HbqRI4p6zeMFxRVu8K+N+J5AoGAfLZLxloTRKBTJ1DVay7q | ||
4yrBt5T4bzI+YWT4JmawDZlp7CQLOOxAe2GxOTw0yVk86gEC+KUS/REk0BIUS3Bx | ||
g5v4EAR24suvD+wkW97FfjIpxju4nzi00jRLCEeZmobix07JWEeVKnA+mGkUF6yl | ||
nFX+kLHzec6dGLbO3Le8k1g= | ||
-----END PRIVATE KEY----- |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxe4aGHkbmb+89tLHW5UE | ||
sBvCdwVJlNzioKMBhlJHiHYlwtXx9YIipz5WvX7nCkjmWEjD3pudcMprPzQxyS++ | ||
VjDdvrvf3LhZzJcRoRHCL2piozTaXWZd/3U2OddF/TKfhg0qRhb41v7CZ7IAgU9u | ||
goEOBtOAL3szIhbvRl0c5Yho48Ph/fsM6/WOhnYTbZmDomycba+Tutu7gcHoIC3Z | ||
RaQDRAJC8JxD1Va04XHb60U5wpK4bWL/ZvLahXlCyoxmpi7iD/gMy+WRyB/5T1uj | ||
5c4C3c2l2yOplRqFJi/E5azGN7R3qqnKyCXStxXFfJ1Jn46YGVVjUwJy+WbIKbpE | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtfSOsqYpJImOZNEQKL9L | ||
uXsYJhW0nufJrAbcUjhOX+wDbnZwjEmk7GQijEcOGEUsDxVcqyG2H31xK/Pn8Djq | ||
B4FkPUfB8LlNNNu0krEsV37MD/sd8tN6J/OZUmVXclv9R8FPdBq1kkw3k78WNL3i | ||
i9L9i4+kT0AzGkKtuT3l8Y+VVEchF15fGtEeZlF1heR85dVvUyjcWgxvrQ+UpIxm | ||
lspFR97BnvcqWZVG28PCfyXpNBGw41kYkrWEVLHrjSpXbD3/zwCJMOp0vuXBDYMW | ||
/C2IT23eNC0CzK6rqNhevdRnW2i2XlLwiEOZYAlzc/9paSBl8HdQJZ/rbP8X4APY | ||
dwIDAQAB | ||
-----END PUBLIC KEY----- |