mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 23:48:05 +01:00
Add tests for WhisperServerService#run
Additionally, `LocalWhisperServerService` may be used for integration testing.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2024 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.whispersystems.textsecuregcm;
|
||||
|
||||
import io.dropwizard.util.Resources;
|
||||
|
||||
/**
|
||||
* This class may be run directly from a correctly configured IDE, or using the command line:
|
||||
* <p>
|
||||
* <code>./mvnw clean integration-test -DskipTests=true -Ptest-server</code>
|
||||
* <p>
|
||||
* <strong>NOTE: many features are non-functional, especially those that depend on external services</strong>
|
||||
*/
|
||||
public class LocalWhisperServerService {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
System.setProperty("secrets.bundle.filename",
|
||||
Resources.getResource("config/test-secrets-bundle.yml").getPath());
|
||||
System.setProperty("sqlite.dir", "service/target/lib");
|
||||
System.setProperty("aws.region", "local-test-region");
|
||||
|
||||
new WhisperServerService().run("server", Resources.getResource("config/test.yml").getPath());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user