Skip to content

Commit ee5d4d6

Browse files
committed
test(provider): authenticate credential handler requests
Signed-off-by: Seth Jennings <[email protected]>
1 parent c88561c commit ee5d4d6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎crates/openshell-server/src/grpc/provider.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6586,7 +6586,7 @@ mod tests {
65866586

65876587
let err = handle_create_provider(
65886588
&state,
6589-
Request::new(CreateProviderRequest {
6589+
authed_request(CreateProviderRequest {
65906590
provider: Some(provider_with_credential_handle(
65916591
"openai-ref",
65926592
"openai",
@@ -6616,7 +6616,7 @@ mod tests {
66166616

66176617
let response = handle_create_provider(
66186618
&state,
6619-
Request::new(CreateProviderRequest {
6619+
authed_request(CreateProviderRequest {
66206620
provider: Some(provider_with_credential_value(
66216621
"openai-local",
66226622
"openai",
@@ -6679,7 +6679,7 @@ mod tests {
66796679

66806680
let err = handle_update_provider(
66816681
&state,
6682-
Request::new(UpdateProviderRequest {
6682+
authed_request(UpdateProviderRequest {
66836683
provider: Some(provider_with_credential_handle(
66846684
"openai-local",
66856685
"openai",
@@ -8685,7 +8685,7 @@ mod tests {
86858685

86868686
handle_create_provider(
86878687
&state,
8688-
Request::new(CreateProviderRequest {
8688+
authed_request(CreateProviderRequest {
86898689
provider: Some(provider_with_credential_value(
86908690
"openai-local",
86918691
"openai",
@@ -8713,7 +8713,7 @@ mod tests {
87138713

87148714
let err = handle_update_provider(
87158715
&state,
8716-
Request::new(UpdateProviderRequest {
8716+
authed_request(UpdateProviderRequest {
87178717
provider: Some(stale_provider),
87188718
credential_expires_at_ms: HashMap::new(),
87198719
workspace: "default".to_string(),

0 commit comments

Comments
 (0)