Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
polebug committed Dec 16, 2024
1 parent 8eb0d11 commit 5150e12
Showing 1 changed file with 44 additions and 8 deletions.
52 changes: 44 additions & 8 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ component:
access_key: abc
access_code: def
federated:
network: mastodon
worker: core
- network: mastodon
worker: mastodon
endpoint: mastodon
parameters:
relay_url_list: ["https://relay.fedi.buzz/instance/mastodon.social"]
- network: bluesky
worker: bluesky
endpoint: bluesky
parameters:
username: user
password: pass
decentralized:
- network: ethereum
Expand Down Expand Up @@ -118,7 +124,7 @@ component:
}
},
"database": {
"coverage_period": 3,
"coverage_period": 3,
"uri": "postgres://postgres@localhost:5432/postgres"
},
"stream": {
Expand Down Expand Up @@ -160,12 +166,21 @@ component:
"federated": [
{
"network": "mastodon",
"worker": "core",
"worker": "mastodon",
"endpoint": "mastodon",
"parameters": {
"relay_url_list": [
"https://relay.fedi.buzz/instance/mastodon.social"
]
"relay_url_list": [
"https://relay.fedi.buzz/instance/mastodon.social"
]
}
},
{
"network": "bluesky",
"worker": "bluesky",
"endpoint": "bluesky",
"parameters": {
"username": "user",
"password": "pass"
}
}
],
Expand Down Expand Up @@ -249,12 +264,21 @@ access_code = "def"
[[component.federated]]
network = "mastodon"
worker = "core"
worker = "mastodon"
endpoint = "mastodon"
[component.federated.parameters]
relay_url_list = ["https://relay.fedi.buzz/instance/mastodon.social"]
[[component.federated]]
network = "bluesky"
worker = "bluesky"
endpoint = "bluesky"
[component.federated.parameters]
username = "user"
password = "pass"
[[component.decentralized]]
network = "ethereum"
worker = "core"
Expand Down Expand Up @@ -336,6 +360,18 @@ var configFileExpected = &File{
// "port": 8181, //ToDo: add port here and other places
},
},
{
Network: network.Bluesky,
Worker: federated.Bluesky,
EndpointID: "bluesky",
Endpoint: Endpoint{
URL: "bluesky",
},
Parameters: &Parameters{
"username": "user",
"password": "pass",
},
},
},
Decentralized: []*Module{
{
Expand Down

0 comments on commit 5150e12

Please sign in to comment.