Skip to content

Commit d521725

Browse files
authored
Add persistence to make clients survive server restarts (#46)
Added persistence of devices, groups, tasks and their progress using the diesel ORM and postgres. The server can be restarted without losing its state. Test use individual Docker containers. Moreover, there are integration tests that execute against the [headless client tests](https://github.com/crocs-muni/meesign-client/blob/main/meesign_core/test/core_test.dart).
2 parents 8c5ca8e + d15aa49 commit d521725

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+7263
-1463
lines changed

.dockerignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
./target/
1+
# Ignore local build artifacts
2+
./target/
3+
4+
Dockerfile*
5+
.dockerignore
6+
7+
# Ignore runtime configuration files
8+
.env
9+
./keys
10+
./integration-tests/.env
11+
12+
# Ignore integration tests completely
13+
./integration-tests

.github/workflows/rust.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,31 @@ env:
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
12-
1311
steps:
14-
- uses: actions/checkout@v3
15-
- name: Install latest stable
16-
uses: actions-rs/toolchain@v1
17-
with:
18-
toolchain: stable
19-
override: true
20-
components: rustfmt, clippy
21-
- name: Install protoc
22-
uses: arduino/setup-protoc@v1
23-
with:
24-
version: 3.x
25-
- name: Build
26-
run: cargo build --verbose
27-
- name: Run tests
28-
run: cargo test --verbose
12+
- uses: actions/checkout@v3
13+
- name: Install latest stable
14+
uses: actions-rs/toolchain@v1
15+
with:
16+
toolchain: stable
17+
override: true
18+
components: rustfmt, clippy
19+
- name: Install protoc
20+
uses: arduino/setup-protoc@v1
21+
with:
22+
version: 3.x
23+
24+
- name: Build
25+
run: cargo build --verbose
26+
27+
- name: Run only unit tests
28+
run: cargo test --verbose
29+
30+
- name: Run also database tests
31+
run: cargo test --verbose --features db-tests
32+
33+
- name: Run integration tests
34+
run: ./run_integration_tests.sh
2935

3036
build-n-release-docker-main:
3137
needs: build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
keys/
55
MeeSignHelper.jar
66

7+
.env*

0 commit comments

Comments
 (0)