Adding ADLS gen2 protocol layer code. (#153)

* Adding test framework for azure storage.

* Adding ADLS gen2 protocol layer code.
This commit is contained in:
Kan Tang 2020-06-09 21:31:12 +08:00 committed by GitHub
parent 401298577e
commit 18408f848a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25565 additions and 2 deletions

View File

@ -9,7 +9,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
option(BUILD_STORAGE_SAMPLES "Build sample codes" ON)
set(AZURE_STORAGE_HEADER
set (AZURE_STORAGE_BLOB_HEADER
inc/common/storage_common.hpp
inc/common/storage_credential.hpp
inc/common/storage_url_builder.hpp
@ -25,7 +25,12 @@ set(AZURE_STORAGE_HEADER
inc/blobs/internal/protocol/blob_rest_client.hpp
)
set(AZURE_STORAGE_SOURCE
set (AZURE_STORAGE_DATALAKE_HEADER
external/json.hpp
inc/datalake/protocol/datalake_rest_client.hpp
)
set (AZURE_STORAGE_BLOB_SOURCE
src/blobs/blob_client.cpp
src/blobs/block_blob_client.cpp
src/blobs/blob_container_client.cpp
@ -36,6 +41,19 @@ set(AZURE_STORAGE_SOURCE
src/common/crypt.cpp
)
set (AZURE_STORAGE_DATALAKE_SOURCE
)
set(AZURE_STORAGE_HEADER
${AZURE_STORAGE_BLOB_HEADER}
${AZURE_STORAGE_DATALAKE_HEADER}
)
set(AZURE_STORAGE_SOURCE
${AZURE_STORAGE_BLOB_SOURCE}
${AZURE_STORAGE_DATALAKE_SOURCE}
)
add_library(azure-storage ${AZURE_STORAGE_HEADER} ${AZURE_STORAGE_SOURCE})
find_package(LibXml2 REQUIRED)

22875
sdk/storage/external/json.hpp vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT

View File

@ -19,3 +19,4 @@ add_executable (
target_link_libraries(azure-storage-test PRIVATE azure-storage)
add_gtest(azure-storage-test)

View File

@ -8,3 +8,4 @@ int main(int argc, char** argv)
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}