|
void | SetUp () override |
|
void | uploadArtifactAndSubscribeToChange (const shared_ptr< ArtifactUnderTest > &artifactUnderTest, const Priority priority, string &updatedIdProp) |
|
void | checkArtifactUpdatedOnce (const shared_ptr< ArtifactUnderTest > &artifactUnderTest, bool &updateAcceptedFlag, bool &updateRejectedFlag, string &oldPathProp, string &newPathProp) |
|
string | replaceAll (string str, const string &from, const string &to) |
|
void | SetUp () override |
|
void | TearDown () override |
|
void | startAssetManager () |
|
void | shutdownAssetManager () |
|
void | uploadArtifactFromRequest (const shared_ptr< ArtifactRequest > &request, size_t size=1, const string &id="", milliseconds ttlDelta=minutes(60)) |
|
|
milliseconds | ttl = milliseconds(500) |
|
size_t | artifactSize = 10 |
|
string | origId = "original" |
|
string | updatedId = "updated_id" |
|
bool | updateAccepted {} |
|
bool | updateRejected {} |
|
string | oldPath |
|
string | newPath |
|
shared_ptr< ArtifactUnderTest > | artifact |
|
string | TMP_DIR |
|
string | TESTING_DIRECTORY |
|
string | BASE_DIR |
|
string | DAVS_TMP |
|
string | DAVS_RESOURCES_DIR |
|
string | DAVS_REQUESTS_DIR |
|
string | URL_RESOURCES_DIR |
|
string | URL_WORKING_DIR |
|
DavsServiceMock | service |
|
shared_ptr< DavsClient > | davsClient |
|
shared_ptr< AssetManager > | assetManager |
|
shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface > | authDelegateMock |
|
shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::InternetConnectionMonitorInterface > | wifiMonitorMock |
|
shared_ptr< DavsEndpointHandlerV3 > | davsEndpointHandler |
|
shared_ptr< UrlAllowListWrapper > | allowUrlList |
|
shared_ptr< AmdCommunicationInterface > | commsHandler |
|
shared_ptr< ArtifactUnderTest > | tarArtifact = make_shared<ArtifactUnderTest>( nullptr, DavsRequest::create("test", "tar", {{"filter1", {"value1"}}, {"filter2", {"value2"}}}, Region::NA, ArtifactRequest::UNPACK)) |
|
shared_ptr< ArtifactUnderTest > | unavailableArtifact = make_shared<ArtifactUnderTest>( nullptr, DavsRequest::create("test", "not_found", {{"filter1", {"value1"}}}, Region::NA, ArtifactRequest::UNPACK)) |
|
shared_ptr< ArtifactUnderTest > | tarUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("test:///tmp/urlResources/urlTarget.tar.gz", "urlArtifact", ArtifactRequest::UNPACK)) |
|
shared_ptr< ArtifactUnderTest > | unavailableUrlArtifact = make_shared<ArtifactUnderTest>( nullptr, UrlRequest::create("test:///unavailableUrlArtifact", "unavailableUrlArtifact")) |
|
shared_ptr< ArtifactUnderTest > | httpUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("http://tinytts.amazon.com/", "httpUrlArtifact")) |
|
shared_ptr< ArtifactUnderTest > | nonApprovedUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("https://evil.com/", "nonApprovedUrlArtifact")) |
|
|
static string | createTarFile (const string &dir, const string &filename, size_t size=1) |
|
◆ checkArtifactUpdatedOnce()
void UpdateTest::checkArtifactUpdatedOnce |
( |
const shared_ptr< ArtifactUnderTest > & |
artifactUnderTest, |
|
|
bool & |
updateAcceptedFlag, |
|
|
bool & |
updateRejectedFlag, |
|
|
string & |
oldPathProp, |
|
|
string & |
newPathProp |
|
) |
| |
|
inline |
◆ replaceAll()
string UpdateTest::replaceAll |
( |
string |
str, |
|
|
const string & |
from, |
|
|
const string & |
to |
|
) |
| |
|
inline |
◆ SetUp()
void UpdateTest::SetUp |
( |
| ) |
|
|
inlineoverride |
◆ uploadArtifactAndSubscribeToChange()
void UpdateTest::uploadArtifactAndSubscribeToChange |
( |
const shared_ptr< ArtifactUnderTest > & |
artifactUnderTest, |
|
|
const Priority |
priority, |
|
|
string & |
updatedIdProp |
|
) |
| |
|
inline |
◆ artifact
Initial value:=
make_shared<ArtifactUnderTest>(nullptr, DavsRequest::create("test", "tar", {{"filter", {"first"}}}))
◆ artifactSize
size_t UpdateTest::artifactSize = 10 |
◆ newPath
string UpdateTest::newPath |
◆ oldPath
string UpdateTest::oldPath |
◆ origId
string UpdateTest::origId = "original" |
◆ ttl
milliseconds UpdateTest::ttl = milliseconds(500) |
◆ updateAccepted
bool UpdateTest::updateAccepted {} |
◆ updatedId
string UpdateTest::updatedId = "updated_id" |
◆ updateRejected
bool UpdateTest::updateRejected {} |
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0