Compare commits
3 commits
9cc0a965cb
...
04b6904400
Author | SHA1 | Date | |
---|---|---|---|
04b6904400 | |||
b43cc8aa3e | |||
7e62707e1e |
6 changed files with 86 additions and 0 deletions
20
.idea/runConfigurations/Clippy.xml
Normal file
20
.idea/runConfigurations/Clippy.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Clippy" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="buildProfileId" value="dev" />
|
||||||
|
<option name="command" value="clippy" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
|
||||||
|
<envs />
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
22
.idea/runConfigurations/Test.xml
Normal file
22
.idea/runConfigurations/Test.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Test" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="buildProfileId" value="dev" />
|
||||||
|
<option name="command" value="test" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
|
||||||
|
<envs>
|
||||||
|
<env name="ACRATE_DATABASE_URL" value="postgres:///acrate?host=/run/postgresql/" />
|
||||||
|
</envs>
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="true" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
22
.idea/runConfigurations/Test_ignored.xml
Normal file
22
.idea/runConfigurations/Test_ignored.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Test ignored" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="buildProfileId" value="dev" />
|
||||||
|
<option name="command" value="test -- --ignored" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
|
||||||
|
<envs>
|
||||||
|
<env name="ACRATE_DATABASE_URL" value="postgres:///acrate?host=/run/postgresql/" />
|
||||||
|
</envs>
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="true" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
|
@ -27,3 +27,8 @@ Federation database
|
||||||
### Binaries
|
### Binaries
|
||||||
|
|
||||||
- `acrate_rdserver`: Resource descriptor web server
|
- `acrate_rdserver`: Resource descriptor web server
|
||||||
|
|
||||||
|
### Extra
|
||||||
|
|
||||||
|
- `acrate_docker`: Utilities for deploying the acrate stack on Docker
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,13 @@ micronfig = { version = "0.3.0", optional = true }
|
||||||
mime = "0.3.17"
|
mime = "0.3.17"
|
||||||
pretty_env_logger = { version = "0.5.0", optional = true }
|
pretty_env_logger = { version = "0.5.0", optional = true }
|
||||||
uuid = "1.11.0"
|
uuid = "1.11.0"
|
||||||
|
tokio = { version = "1.42.0", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["connect"]
|
default = ["connect"]
|
||||||
bin = ["diesel_migrations", "pretty_env_logger", "connect"]
|
bin = ["diesel_migrations", "pretty_env_logger", "connect"]
|
||||||
connect = ["micronfig"]
|
connect = ["micronfig"]
|
||||||
|
tests = ["tokio", "connect"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "acrate_database"
|
name = "acrate_database"
|
||||||
|
|
15
acrate_database/tests/test_connect.rs
Normal file
15
acrate_database/tests/test_connect.rs
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
use acrate_database::connect::{connect_async, connect_sync};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[ignore]
|
||||||
|
fn test_connect_sync() -> diesel::ConnectionResult<()> {
|
||||||
|
connect_sync()?;
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
#[ignore]
|
||||||
|
async fn test_connect_async() -> diesel::ConnectionResult<()> {
|
||||||
|
connect_async().await?;
|
||||||
|
Ok(())
|
||||||
|
}
|
Loading…
Reference in a new issue