Skip to content

Keep compatibility with Go 1.13.14. #264

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

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

semk
Copy link
Contributor

@semk semk commented Mar 10, 2021

http.Header has no method Values on older go versions. azblob 0.13 broke the compatibility with Go 1.13.

@ghost
Copy link

ghost commented Mar 10, 2021

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@mohsha-msft mohsha-msft left a comment

Choose a reason for hiding this comment

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

Changes look good to me. I remember these changes were made while upgrading the Go version to 1.15. To keep it compatible with Go version 1.13.x, we should do those changes.

@mohsha-msft
Copy link
Contributor

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mohsha-msft
Copy link
Contributor

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@semk
Copy link
Contributor Author

semk commented Mar 17, 2021

@mohsha-msft Updated the changes to not return the error when the request id is missing (as err was not expected by the tests). How can I run the tests locally?

@mohsha-msft
Copy link
Contributor

@semk ,

Thanks for reaching out and I appreciate your contribution.
As for your query about running the test suite locally, you need to setup these environment variables

ACCOUNT_NAME
ACCOUNT_KEY
BLOB_STORAGE_ACCOUNT_NAME
BLOB_STORAGE_ACCOUNT_KEY
PREMIUM_ACCOUNT_NAME
PREMIUM_ACCOUNT_KEY
SECONDARY_ACCOUNT_NAME
SECONDARY_ACCOUNT_KEY
APPLICATION_ID
CLIENT_SECRET
TENANT_ID

Most of the test cases will work with just the first two (ACCOUNT_NAME and ACCOUNT_KEY)
Please specify them and you can run the tests locally.

Reach out for more help :)

@mohsha-msft mohsha-msft merged commit 5e5d328 into Azure:dev Mar 17, 2021
siminsavani-msft added a commit that referenced this pull request Jul 2, 2021
* Removed requestId, Timeout, versionId, snapshot from the function signature of GetTags() and SetTags() (#252)

* Changed the function signature of getTags and setTags

* Minor Adjustment

* Review - 1

* Adding Support for PutBlobFromUrl (#251)

* Regenerate SDK

* Regenerate SDK with proper version

* Adding support for PutBlobFromURL

* Correcting regen code and handling other errors

* Resolving comments on PR

* Correcting SetTags method

* Updating tests with GetTags and SetTags

* Remove swagger/Go_BlobStorage/code-model-v1

* Checks value of metadata & reorganized tests

Co-authored-by: Adele Reed <adreed@microsoft.com>

* Keep compatibility with Go 1.13.14. (#264)

* - Keep compliance with Golang 1.13.14. http.Header has no method Values
  on older go versions.

* Do not return error when client request id is missing

* Adding MSI Login Example (#241)

* Added MSI login example

* Minor edits

Co-authored-by: zezha-msft <zezha@microsoft.com>

* Offer Knob to Disable Syslog | Default logging to syslog enabled (#268)

* Provide Knob For Syslog

* Reverting changes to GetTags/SetTags & BlobPropertiesInternal (#269)

* Adding MSI Login Example (#241)

* Added MSI login example

* Minor edits

Co-authored-by: zezha-msft <zezha@microsoft.com>

* Reverting changes to GetTags/SetTags & BlobPropertiesInternal

Co-authored-by: Mohit Sharma <65536214+mohsha-msft@users.noreply.github.com>
Co-authored-by: zezha-msft <zezha@microsoft.com>

Co-authored-by: siminsavani-msft <77068571+siminsavani-msft@users.noreply.github.com>
Co-authored-by: zezha-msft <zezha@microsoft.com>

* Update go dependencies

* Resolving Concurrency Issues  (#275)

* Resolving concurrency issues

* Fixing concurrency test

* Minor changes

* Incremented version and added to changelog

* Updated version to 0.14

Co-authored-by: Mohit Sharma <65536214+mohsha-msft@users.noreply.github.com>
Co-authored-by: Adele Reed <adreed@microsoft.com>
Co-authored-by: Sreejith Kesavan <sreejithemk@gmail.com>
Co-authored-by: zezha-msft <zezha@microsoft.com>
Co-authored-by: Yang Peng <42422145+yangp18@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants