AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AssetManagerTest Class Reference

#include <AssetManagerTest.h>

Inheritance diagram for AssetManagerTest:
Inheritance graph
[legend]
Collaboration diagram for AssetManagerTest:
Collaboration graph
[legend]

Public Member Functions

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))
 

Static Public Member Functions

static string createTarFile (const string &dir, const string &filename, size_t size=1)
 

Public Attributes

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"))
 

Member Function Documentation

◆ createTarFile()

static string AssetManagerTest::createTarFile ( const string &  dir,
const string &  filename,
size_t  size = 1 
)
inlinestatic

◆ SetUp()

void AssetManagerTest::SetUp ( )
inlineoverride

◆ shutdownAssetManager()

void AssetManagerTest::shutdownAssetManager ( )
inline

◆ startAssetManager()

void AssetManagerTest::startAssetManager ( )
inline

◆ TearDown()

void AssetManagerTest::TearDown ( )
inlineoverride

◆ uploadArtifactFromRequest()

void AssetManagerTest::uploadArtifactFromRequest ( const shared_ptr< ArtifactRequest > &  request,
size_t  size = 1,
const string &  id = "",
milliseconds  ttlDelta = minutes(60) 
)
inline

Member Data Documentation

◆ allowUrlList

shared_ptr<UrlAllowListWrapper> AssetManagerTest::allowUrlList

◆ assetManager

shared_ptr<AssetManager> AssetManagerTest::assetManager

◆ authDelegateMock

shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface> AssetManagerTest::authDelegateMock

◆ BASE_DIR

string AssetManagerTest::BASE_DIR

◆ commsHandler

shared_ptr<AmdCommunicationInterface> AssetManagerTest::commsHandler

◆ DAVS_REQUESTS_DIR

string AssetManagerTest::DAVS_REQUESTS_DIR

◆ DAVS_RESOURCES_DIR

string AssetManagerTest::DAVS_RESOURCES_DIR

◆ DAVS_TMP

string AssetManagerTest::DAVS_TMP

◆ davsClient

shared_ptr<DavsClient> AssetManagerTest::davsClient

◆ davsEndpointHandler

shared_ptr<DavsEndpointHandlerV3> AssetManagerTest::davsEndpointHandler

◆ httpUrlArtifact

shared_ptr<ArtifactUnderTest> AssetManagerTest::httpUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("http://tinytts.amazon.com/", "httpUrlArtifact"))

◆ nonApprovedUrlArtifact

shared_ptr<ArtifactUnderTest> AssetManagerTest::nonApprovedUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("https://evil.com/", "nonApprovedUrlArtifact"))

◆ service

DavsServiceMock AssetManagerTest::service

◆ tarArtifact

shared_ptr<ArtifactUnderTest> AssetManagerTest::tarArtifact = make_shared<ArtifactUnderTest>( nullptr, DavsRequest::create("test", "tar", {{"filter1", {"value1"}}, {"filter2", {"value2"}}}, Region::NA, ArtifactRequest::UNPACK))

◆ tarUrlArtifact

shared_ptr<ArtifactUnderTest> AssetManagerTest::tarUrlArtifact = make_shared<ArtifactUnderTest>(nullptr, UrlRequest::create("test:///tmp/urlResources/urlTarget.tar.gz", "urlArtifact", ArtifactRequest::UNPACK))

◆ TESTING_DIRECTORY

string AssetManagerTest::TESTING_DIRECTORY

◆ TMP_DIR

string AssetManagerTest::TMP_DIR

◆ unavailableArtifact

shared_ptr<ArtifactUnderTest> AssetManagerTest::unavailableArtifact = make_shared<ArtifactUnderTest>( nullptr, DavsRequest::create("test", "not_found", {{"filter1", {"value1"}}}, Region::NA, ArtifactRequest::UNPACK))

◆ unavailableUrlArtifact

shared_ptr<ArtifactUnderTest> AssetManagerTest::unavailableUrlArtifact = make_shared<ArtifactUnderTest>( nullptr, UrlRequest::create("test:///unavailableUrlArtifact", "unavailableUrlArtifact"))

◆ URL_RESOURCES_DIR

string AssetManagerTest::URL_RESOURCES_DIR

◆ URL_WORKING_DIR

string AssetManagerTest::URL_WORKING_DIR

◆ wifiMonitorMock


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