AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
UpdateTest Class Reference
Inheritance diagram for UpdateTest:
Inheritance graph
[legend]
Collaboration diagram for UpdateTest:
Collaboration graph
[legend]

Public Member Functions

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)
 
- Public Member Functions inherited from AssetManagerTest
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))
 

Public Attributes

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< ArtifactUnderTestartifact
 
- Public Attributes inherited from AssetManagerTest
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< DavsClientdavsClient
 
shared_ptr< AssetManagerassetManager
 
shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterfaceauthDelegateMock
 
shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::InternetConnectionMonitorInterfacewifiMonitorMock
 
shared_ptr< DavsEndpointHandlerV3davsEndpointHandler
 
shared_ptr< UrlAllowListWrapperallowUrlList
 
shared_ptr< AmdCommunicationInterfacecommsHandler
 
shared_ptr< ArtifactUnderTesttarArtifact = make_shared<ArtifactUnderTest>( nullptr, DavsRequest::create("test", "tar", {{"filter1", {"value1"}}, {"filter2", {"value2"}}}, Region::NA, ArtifactRequest::UNPACK))
 
shared_ptr< ArtifactUnderTestunavailableArtifact = make_shared<ArtifactUnderTest>( nullptr, DavsRequest::create("test", "not_found", {{"filter1", {"value1"}}}, Region::NA, ArtifactRequest::UNPACK))
 
shared_ptr< ArtifactUnderTesttarUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("test:///tmp/urlResources/urlTarget.tar.gz", "urlArtifact", ArtifactRequest::UNPACK))
 
shared_ptr< ArtifactUnderTestunavailableUrlArtifact = make_shared<ArtifactUnderTest>( nullptr, UrlRequest::create("test:///unavailableUrlArtifact", "unavailableUrlArtifact"))
 
shared_ptr< ArtifactUnderTesthttpUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("http://tinytts.amazon.com/", "httpUrlArtifact"))
 
shared_ptr< ArtifactUnderTestnonApprovedUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("https://evil.com/", "nonApprovedUrlArtifact"))
 

Additional Inherited Members

- Static Public Member Functions inherited from AssetManagerTest
static string createTarFile (const string &dir, const string &filename, size_t size=1)
 

Member Function Documentation

◆ 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

Member Data Documentation

◆ artifact

shared_ptr<ArtifactUnderTest> UpdateTest::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