1
0
Fork 0

update tests to use CreateHookOptionConfig fields

This commit is contained in:
Cyborus 2024-04-26 13:39:03 -04:00
parent fd0c22a1c6
commit 8a25d55690
No known key found for this signature in database

View file

@ -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,