Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test file URLs #176

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client-lite/test/test_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

const uint64_t g_prodFileSizeBytes = 25006511u;

const std::string g_smallFileUrl = "http://main.oremdl.microsoft.com.nsatc.net/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/43A54FC03C6A979E9AAEAE2493757D1429A5C8A8D093FB7B8103E8CC8DF7B6B6";
const std::string g_smallFileUrl = "http://download.windowsupdate.com/phf/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/43A54FC03C6A979E9AAEAE2493757D1429A5C8A8D093FB7B8103E8CC8DF7B6B6";
const std::string g_smallFile2Url = "http://extorigin-int.dcat.dsp.mp.microsoft.com/filestreamingservice/files/81701079-fa80-48b4-825a-27af227e4192";
const std::string g_largeFileUrl = "http://main.oremdl.microsoft.com.nsatc.net/dotc/ReplacementDCATFile.txt";
const std::string g_404Url = "http://main.oremdl.microsoft.com.nsatc.net/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/nonexistent";
const std::string g_largeFileUrl = "http://download.windowsupdate.com/phf/dotc/ReplacementDCATFile.txt";
const std::string g_404Url = "http://download.windowsupdate.com/phf/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/nonexistent";
const std::string g_prodFileUrl = "http://dl.delivery.mp.microsoft.com/filestreamingservice/files/52fa8751-747d-479d-8f22-e32730cc0eb1";

// This MCC instance only works within our test lab azure VMs. Can be overriden via cmdline.
Expand Down
6 changes: 3 additions & 3 deletions sdk-cpp/tests/test_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ static const std::string downloadPath = "/var/lib/deviceupdate-agent-downloads";
static const std::string downloadPath = fs::temp_directory_path().string();
#endif

const std::string g_largeFileUrl = "http://main.oremdl.microsoft.com.nsatc.net/dotc/ReplacementDCATFile.txt";
const std::string g_largeFileUrl = "http://download.windowsupdate.com/phf/dotc/ReplacementDCATFile.txt";
const std::string g_malformedFilePath = "?f309adfasdf///dfasdfj39fjasldfjasdf/// ///.1";
const std::string g_tmpFileName = (downloadPath / fs::path("docsdk_testfile.txt")).string();
const std::string g_tmpFileName2 = (downloadPath / fs::path("docsdk_testfile2.txt")).string();
const std::string g_tmpFileName3 = (downloadPath / fs::path("docsdk_testfile3.txt")).string();
const std::string g_smallFileUrl = "http://main.oremdl.microsoft.com.nsatc.net/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/43A54FC03C6A979E9AAEAE2493757D1429A5C8A8D093FB7B8103E8CC8DF7B6B6";
const std::string g_smallFileUrl = "http://download.windowsupdate.com/phf/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/43A54FC03C6A979E9AAEAE2493757D1429A5C8A8D093FB7B8103E8CC8DF7B6B6";
const std::string g_smallFilePhfInfoJson = R"(
{
"PiecesHashFileUrl":"https://storage4do.blob.core.windows.net/testdata/SmallFile.phf",
"HashOfHashes":"Q6VPwDxql56arq4kk3V9FCmlyKjQk/t7gQPozI33trY="
})";
const std::string g_404Url = "http://main.oremdl.microsoft.com.nsatc.net/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/nonexistent";
const std::string g_404Url = "http://download.windowsupdate.com/phf/dotc/49c591d405d307e25e72a19f7e79b53d69f19954/nonexistent";
const std::string g_prodFileUrl = "http://dl.delivery.mp.microsoft.com/filestreamingservice/files/52fa8751-747d-479d-8f22-e32730cc0eb1";

const std::chrono::seconds g_smallFileWaitTime = 10s;
Expand Down