Skip to content

Commit

Permalink
Document test
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Jun 25, 2024
1 parent 924abd0 commit 9716fe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ee/tabby-webserver/src/service/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ mod tests {
async fn test_api_base() {
let (integration, _, _) = create_services().await;

// Should not be able to create a self-hosted provider without an API base
assert!(integration
.create_integration(
IntegrationKind::GithubSelfHosted,
Expand All @@ -328,9 +329,10 @@ mod tests {
.await
.is_err());

// Should not be able to update an existing self-hosted provider without an API base
let id = integration
.create_integration(
IntegrationKind::GithubSelfHosted,
IntegrationKind::GitlabSelfHosted,
"github".into(),
"token".into(),
Some("https://github.com".into()),
Expand All @@ -341,7 +343,7 @@ mod tests {
assert!(integration
.update_integration(
id,
IntegrationKind::GithubSelfHosted,
IntegrationKind::GitlabSelfHosted,
"github".into(),
None,
None
Expand Down

0 comments on commit 9716fe9

Please sign in to comment.