update tests to use CreateHookOptionConfig fields
				
					
				
			This commit is contained in:
		
							parent
							
								
									fd0c22a1c6
								
							
						
					
					
						commit
						8a25d55690
					
				
					 1 changed files with 3 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue