-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove HTTP from supported protocols in Downloader (#42)
* Remove HTTP from supported protocols in Downloader * Fix review findings #1 * Fixed generation of self-signed certificate * Fixed OCaaS check (disable scan for curl tests) * Fix workflow (update of ca-certificates.conf) * Restrict self-signed certificate for testing to localhost * Fix review findings #2 * Fix OCaaS issues * Create unavailable directory for self-signed testing certificate * Fix OCaaS issues * Interpret backslash in github workflow * Fix path to crt file in apache2 configuration * Pass certificates from host to arm64 guest and update ca-certificates internally * Fix OCaaS issues * Update ca-certificates in arm64 guest on run * Fix OCaaS issues
- Loading branch information
1 parent
f13ee27
commit a4382ff
Showing
17 changed files
with
170 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule curl
updated
2767 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "gtest/gtest.h" | ||
|
||
#include "Context.h" | ||
#include "Download/Downloader.h" | ||
|
||
#include <spdlog/fmt/fmt.h> | ||
|
||
namespace { | ||
|
||
class TestDownloaderP | ||
: public ::testing::TestWithParam<std::string> | ||
{ }; | ||
|
||
TEST_P(TestDownloaderP, downloadViaUnsupportedProtocolFails) | ||
{ | ||
sua::Context ctx; | ||
sua::Downloader d(ctx); | ||
|
||
auto url = fmt::format("{}://127.0.0.1/bundle", GetParam()); | ||
auto res = d.start(url); | ||
|
||
EXPECT_EQ(std::get<0>(res), sua::TechCode::DownloadFailed); | ||
} | ||
|
||
INSTANTIATE_TEST_CASE_P( | ||
TestDownloaderViaUnsupportedProtocols, | ||
TestDownloaderP, | ||
::testing::Values( | ||
"ftp", "http", "sftp", "smb", "smbs", "ldap", "ldaps" | ||
) | ||
); | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.