summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-04-26 19:39:03 +0200
committerCyborus <cyborus@cyborus.xyz>2024-04-26 19:39:03 +0200
commit8a25d55690d81eb37b15315002c3df91f90160a7 (patch)
tree45ef4308611ad3d72f5b7c763ea7161523e82499
parentadd `CreateHookOptionConfig` required properties as fields (diff)
downloadforgejo-api-8a25d55690d81eb37b15315002c3df91f90160a7.tar.xz
forgejo-api-8a25d55690d81eb37b15315002c3df91f90160a7.zip
update tests to use `CreateHookOptionConfig` fields
-rw-r--r--tests/ci_test.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs
index 925dc2e..0d03074 100644
--- a/tests/ci_test.rs
+++ b/tests/ci_test.rs
@@ -403,13 +403,9 @@ async fn admin() {
authorization_header: None,
branch_filter: None,
config: CreateHookOptionConfig {
- // content_type: "json".into(),
- // url: url::Url::parse("http://test.local/").unwrap(),
- additional: [
- ("content_type".into(), "json".into()),
- ("url".into(), "http://test.local/".into()),
- ]
- .into(),
+ content_type: "json".into(),
+ url: url::Url::parse("http://test.local/").unwrap(),
+ additional: Default::default(),
},
events: Some(Vec::new()),
r#type: CreateHookOptionType::Gitea,