update tests to use CreateHookOptionConfig
fields
This commit is contained in:
parent
fd0c22a1c6
commit
8a25d55690
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue