Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restructure storage samples #3113

Merged
merged 7 commits into from
Nov 19, 2021
Merged

restructure storage samples #3113

merged 7 commits into from
Nov 19, 2021

Conversation

Jinming-Hu
Copy link
Member

Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the contributing guide.

  • C++ Guidelines
  • Doxygen docs
  • Unit tests
  • No unwanted commits/changes
  • Descriptive title/description
    • PR is single purpose
    • Related issue listed
  • Comments in source
  • No typos
  • Update changelog
  • Not work-in-progress
  • External references or docs updated
  • Self review of PR done
  • Any breaking changes?

@Jinming-Hu Jinming-Hu added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Nov 17, 2021
@Jinming-Hu Jinming-Hu added this to the [2021] December milestone Nov 17, 2021
@Jinming-Hu Jinming-Hu self-assigned this Nov 17, 2021
@Jinming-Hu
Copy link
Member Author

/azp run cpp - storage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@vhvb1989 vhvb1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make samples to read from environment for connection string or account name/key
Use the same env-vars defined in the test-resources.json (update the name in the test-resources.json if required) so we can run samples during nightly CI gates

sdk/storage/azure-storage-blobs/samples/CMakeLists.txt Outdated Show resolved Hide resolved
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.13)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. Ideally, we might want to have one folder for each sample. Each folder would contain a CMakeList and the source code.

In the future, we want to make then entire folder a copy/paste project with no dependency to the repo.

This works for now and is better than previous approach.

sdk/storage/azure-storage-blobs/samples/blob_sas.cpp Outdated Show resolved Hide resolved
sdk/storage/azure-storage-queues/samples/CMakeLists.txt Outdated Show resolved Hide resolved
@Jinming-Hu
Copy link
Member Author

/azp run cpp - storage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Jinming-Hu
Copy link
Member Author

/azp run cpp - storage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Jinming-Hu
Copy link
Member Author

@vhvb1989 I just added support for reading from env var. It all looks good to me now. Feel free to hit the merge button to unblock youself.

@Jinming-Hu Jinming-Hu merged commit 1b814a8 into Azure:main Nov 19, 2021
@Jinming-Hu Jinming-Hu deleted the pr3 branch November 19, 2021 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants