Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create acceptance test for quotient #191

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/tests/grpc/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,42 @@ mod tests {
// Assert
assert!(response.is_ok())
}

#[ignore = "fails for some reason related to get_leaves_helper"]
#[test_case(
&["Spec", "Researcher" ,"Machine"],
"samples/json/EcdarUniversity",
"(Spec // Researcher // Machine)"
)]
#[tokio::test]
async fn start_simulation_then_take_simulation_step__duplicate_for_ignore(
component_names: &[&str],
components_path: &str,
composition: &str,
) {
// Arrange
let backend = ProtobufServer::ConcreteEcdarBackend::default();
let request = Request::new(create_start_request(
component_names,
components_path,
composition,
));

// Act
let response = backend.start_simulation(request).await;

// Arrange
let request = Request::new(create_step_request(
component_names,
components_path,
composition,
response,
));

// Act
let response = backend.take_simulation_step(request).await;

// Assert
assert!(response.is_ok())
}
}