// Licensed to the Software Freedom Conservancy (SFC) under one1// or more contributor license agreements. See the NOTICE file2// distributed with this work for additional information3// regarding copyright ownership. The SFC licenses this file4// to you under the Apache License, Version 2.0 (the5// "License"); you may not use this file except in compliance6// with the License. You may obtain a copy of the License at7//8// http://www.apache.org/licenses/LICENSE-2.09//10// Unless required by applicable law or agreed to in writing,11// software distributed under the License is distributed on an12// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY13// KIND, either express or implied. See the License for the14// specific language governing permissions and limitations15// under the License.1617use crate::common::{assert_output, get_selenium_manager};1819use exitcode::DATAERR;2021mod common;2223#[tokio::test]24async fn wrong_proxy_test() {25let mut cmd = get_selenium_manager();26let result = cmd27.args([28"--debug",29"--browser",30"chrome",31"--proxy",32"http://localhost:12345",33])34.assert()35.try_success();3637assert_output(&mut cmd, result, vec!["in PATH"], DATAERR);38}39#[test]40fn wrong_protocol_proxy_test() {41let mut cmd = get_selenium_manager();42let result = cmd43.args(["--browser", "chrome", "--proxy", "wrong:://proxy"])44.assert()45.try_success();4647assert_output(&mut cmd, result, vec!["There was an error"], DATAERR);48}4950#[test]51fn wrong_port_proxy_test() {52let mut cmd = get_selenium_manager();53let result = cmd54.args([55"--browser",56"chrome",57"--proxy",58"https:://localhost:1234567",59])60.assert()61.try_success();6263assert_output(&mut cmd, result, vec!["There was an error"], DATAERR);64}656667