Skip to content

Commit

Permalink
ignore docker-based tests by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kkohbrok committed Aug 16, 2023
1 parent ae82d48 commit 620cc04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose -- --include-ignored
- name: Set up bridge
run: cd coreclient/dart-bridge && make setup-ci
- name: Build bridge
Expand Down
6 changes: 6 additions & 0 deletions server/tests/federation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,42 @@
use phnxserver_test_harness::test_scenarios::{run_test_scenario, FederationTestScenario};

#[actix_rt::test]
#[ignore]
#[tracing::instrument(name = "Connect federated users test", skip_all)]
async fn connect_federated_users() {
run_test_scenario(FederationTestScenario::ConnectUsers).await;
}

#[actix_rt::test]
#[ignore]
#[tracing::instrument(name = "Federated group operations test", skip_all)]
async fn federated_group_operations() {
run_test_scenario(FederationTestScenario::GroupOperations).await;
}

#[actix_rt::test]
#[ignore]
#[tracing::instrument(name = "Federated group invitations test", skip_all)]
async fn invite_federated_users() {
run_test_scenario(FederationTestScenario::InviteToGroup).await;
}

#[actix_rt::test]
#[ignore]
#[tracing::instrument(name = "Federated group removal test", skip_all)]
async fn remove_federated_users() {
run_test_scenario(FederationTestScenario::RemoveFromGroup).await;
}

#[actix_rt::test]
#[ignore]
#[tracing::instrument(name = "Leave federated group test", skip_all)]
async fn leave_federated_group() {
run_test_scenario(FederationTestScenario::LeaveGroup).await;
}

#[actix_rt::test]
#[ignore]
#[tracing::instrument(name = "Randomized operations test", skip_all)]
async fn randomized_federated_operations() {
run_test_scenario(FederationTestScenario::RandomizedOperations).await;
Expand Down
2 changes: 1 addition & 1 deletion test_harness/src/test_scenarios/randomized_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

use phnxbackend::qs::Fqdn;
use rand::{seq::SliceRandom, Rng, SeedableRng};
use rand::{seq::SliceRandom, SeedableRng};

use crate::utils::setup::TestBed;

Expand Down

0 comments on commit 620cc04

Please sign in to comment.