fix: complete mock move by removing root-level duplicates

The previous commit copied mocks to mocks/ but didn't delete
the originals. This removes the root-level mock_synapse.py and
mock-google-oidc/, updates path references in the mocks/ copies,
and adds config.yaml to .gitignore.
This commit is contained in:
Letro Bot
2026-04-07 14:22:14 +03:30
parent 6cfaf99300
commit c81cf73b75
8 changed files with 8 additions and 434 deletions

View File

@@ -10,7 +10,7 @@ A lightweight mock OpenID Connect provider that simulates Google login for local
## Quick start
```sh
cd mock-google-oidc
cd mocks/mock-google-oidc
npm install
npm start
```
@@ -61,10 +61,10 @@ upstream_oauth2:
```sh
# Terminal 1: Mock Synapse (handles homeserver API calls)
python3 mock_synapse.py
python3 mocks/mock_synapse.py
# Terminal 2: Mock Google OIDC
cd mock-google-oidc && npm start
cd mocks/mock-google-oidc && npm start
# Terminal 3: MAS
cargo run -- server -c config.yaml

View File

@@ -6,7 +6,7 @@ Handles both Modern (_synapse/mas/...) and Legacy (_synapse/admin/...)
API endpoints that MAS calls on Synapse.
Usage:
python3 mock_synapse.py
python3 mocks/mock_synapse.py
Then start MAS normally:
cargo run -- server -c config.yaml