Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{build_api_credentials_test.cpp} Namespace Reference

Classes

class  StorageCredentialTests
 

Functions

std::string ServiceAccountJson ()
 
std::string AssertionClaims (absl::string_view body)
 
 TEST_F (StorageCredentialTests, CredentialSourceTokenIsNotPresentedToStorageSuccess)
 
 TEST_F (StorageCredentialTests, CredentialSourceFileIsNeverReadSuccess)
 
 TEST_F (StorageCredentialTests, CredentialFilepathIsNotPresentedToStorageSuccess)
 
 TEST_F (StorageCredentialTests, ServiceAccountMintsAStorageScopedTokenSuccess)
 
 TEST_F (StorageCredentialTests, BotoFileOutranksTheMetadataServerSuccess)
 
 TEST_F (StorageCredentialTests, GceHostsGetAnAmbientCredentialSuccess)
 
 TEST_F (StorageCredentialTests, UseGceMetadataFlagQueriesTheMetadataServerSuccess)
 
 TEST_F (StorageCredentialTests, LegacyGceValueQueriesTheMetadataServerSuccess)
 

Variables

constexpr char kTestPrivateKey []
 
constexpr char kTokenResponse []
 

Function Documentation

◆ AssertionClaims()

std::string cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::AssertionClaims ( absl::string_view  body)

◆ ServiceAccountJson()

std::string cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::ServiceAccountJson ( )

◆ TEST_F() [1/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
BotoFileOutranksTheMetadataServerSuccess   
)

◆ TEST_F() [2/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
CredentialFilepathIsNotPresentedToStorageSuccess   
)

◆ TEST_F() [3/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
CredentialSourceFileIsNeverReadSuccess   
)

◆ TEST_F() [4/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
CredentialSourceTokenIsNotPresentedToStorageSuccess   
)

◆ TEST_F() [5/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
GceHostsGetAnAmbientCredentialSuccess   
)

◆ TEST_F() [6/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
LegacyGceValueQueriesTheMetadataServerSuccess   
)

◆ TEST_F() [7/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
ServiceAccountMintsAStorageScopedTokenSuccess   
)

◆ TEST_F() [8/8]

cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F ( StorageCredentialTests  ,
UseGceMetadataFlagQueriesTheMetadataServerSuccess   
)

Variable Documentation

◆ kTestPrivateKey

constexpr char cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::kTestPrivateKey[]
constexpr
Initial value:
=
"-----BEGIN PRIVATE KEY-----\\n"
"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCr4jcMb0PlSMAl\\n"
"UO0oams84Ph8HnEYp14sSuNPuarrGaFEm4GPS0BMFBV4BSd7nX/MCqk3Jbd8kolL\\n"
"oaHa+7uKs5F7lrl3w0/JmA8P4/6D86CU0dCrwriIKL6BNvik3CHZEHCmKI6Ht8ur\\n"
"C+jQjEOp9bJVW3+NdyyKxChK29a7W6JjuBRp8TohHKeV5BQHCVj8krkylFCTO3VX\\n"
"KQQpFyy+H6jZyIJY2WSRMLBHg8sVkw+qjXRnGxRdK262SGuPfvzdUzaYbNxqLtXT\\n"
"IzQCV6kDyaBsTCU8fz7nOGg/cgCBuzocnpXgKTgICEwktUUVAC2PXbwrHHEYC05N\\n"
"Z5LOY00xAgMBAAECggEAAdP5E+fHCBQ6/uqaaxiepVobKm7Ecyesh7oQKtPlrnRq\\n"
"U6l3ukdpmqWICOu9HMJzDn96hzyec/O3BBfm+cY9m18HiBH1TQHFwnYciuW42jxo\\n"
"E80bdAgxIDmWt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zAPCmIRpRVwSoFZvXI0kkGd1W09hDO9DE\\n"
"G4BLoOcpJEN9OFp1lwi2xFgb9ibrtmDUM/+SuSr3w4oxKmK9RfDk7uTSQtxM4BO3\\n"
"MeqOwdgF5vKL/MNnxi319Ic=\\n"
"-----END PRIVATE KEY-----\\n"

◆ kTokenResponse

constexpr char cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::kTokenResponse[]
constexpr
Initial value:
=
R"({"access_token": "a-minted-token", "expires_in": 3600})"