Skip to content

Commit 9e61b5a

Browse files
committed
fix: tests
1 parent f431d3d commit 9e61b5a

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

common/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use openidconnect::{
2828
ClientId, ClientSecret, IssuerUrl, OAuth2TokenResponse, Scope,
2929
};
3030

31-
use crate::proto::{field_options::Options, CreateFieldRequest, FieldType};
31+
use crate::proto::CreateFieldRequest;
3232

3333
lazy_static! {
3434
pub static ref GRPC_ENDPOINT: String = std::env::var("GRPC_ENDPOINT").unwrap();

tests/_common/configs/postgres.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ database:
33
username: postgres
44
password: password
55
database: postgres
6-
endpoint: localhost:5432
6+
endpoint: database:5432
77
oidc:
8-
provider: http://localhost:5151
8+
provider: http://oidc-server-mock
99
issuer: http://localhost:5151
1010
scopes:
1111
- name: "api:feedback-fusion"

tests/integration/authentication.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ macro_rules! test_authentication {
3434
paste::paste! {
3535
#[test(tokio::test)]
3636
async fn [<test_$method>]() {
37-
let mut client = FeedbackFusionV1Client::connect(crate::common::GRPC_ENDPOINT.as_str())
37+
let mut client = FeedbackFusionV1Client::connect(feedback_fusion_common::tests::GRPC_ENDPOINT.as_str())
3838
.await
3939
.unwrap();
4040

tests/integration/field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use feedback_fusion_common::proto::{
2626
};
2727
use test_log::test;
2828

29-
use crate::connect;
29+
use feedback_fusion_common::connect;
3030

3131
fn create_target() -> CreateTargetRequest {
3232
CreateTargetRequest {

tests/integration/prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use feedback_fusion_common::proto::{
2626
};
2727
use test_log::test;
2828

29-
use crate::connect;
29+
use feedback_fusion_common::connect;
3030

3131
fn create_target() -> CreateTargetRequest {
3232
CreateTargetRequest {

tests/integration/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use feedback_fusion_common::proto::{
2929
};
3030
use test_log::test;
3131

32-
use crate::connect;
32+
use feedback_fusion_common::connect;
3333

3434
fn create_target() -> CreateTargetRequest {
3535
CreateTargetRequest {

tests/integration/target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use feedback_fusion_common::proto::{
2525
};
2626
use test_log::test;
2727

28-
use crate::connect;
28+
use feedback_fusion_common::connect;
2929

3030
fn create_request() -> CreateTargetRequest {
3131
CreateTargetRequest {

tests/integration/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use test_log::test;
2424
use tonic::Request;
2525

26-
use crate::connect;
26+
use feedback_fusion_common::connect;
2727

2828
#[test(tokio::test)]
2929
async fn test_get_user_info() {

0 commit comments

Comments
 (0)