-
Notifications
You must be signed in to change notification settings - Fork 910
[AzDatalake] Filesystem Client Implementation + Test Framework #21067
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
tasherif-msft
merged 63 commits into
Azure:feature/azdatalake
from
tasherif-msft:test-framework
Jul 4, 2023
Merged
Changes from 62 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
e8167a2
Enable gocritic during linting (#20715)
jhendrixMSFT 86627ae
Cosmos DB: Enable merge support (#20716)
ealsur 8ac8c6d
[azservicebus, azeventhubs] Stress test and logging improvement (#20710)
richardpark-msft 9111616
update proxy version (#20712)
azure-sdk d6bf190
Return an error when you try to send a message that's too large. (#20…
richardpark-msft e2693bd
Changes in test that is failing in pipeline (#20693)
siminsavani-msft 03f0ac3
[azservicebus, azeventhubs] Treat 'entity full' as a fatal error (#20…
richardpark-msft 838842d
[azservicebus/azeventhubs] Redirect stderr and stdout to tee (#20726)
richardpark-msft 20b4dd8
Update changelog with latest features (#20730)
jhendrixMSFT 745d967
pass along the artifact name so we can override it later (#20732)
azure-sdk 6dfd0cb
[azeventhubs] Fixing checkpoint store race condition (#20727)
richardpark-msft ed7f3c7
Fix azidentity troubleshooting guide link (#20736)
chlowell b2cddab
[Release] sdk/resourcemanager/paloaltonetworksngfw/armpanngfw/0.1.0 (…
Alancere 2a8d96d
add sdk/resourcemanager/postgresql/armpostgresql live test (#20685)
Alancere 0d22aed
add sdk/resourcemanager/eventhub/armeventhub live test (#20686)
Alancere 5fa7df4
add sdk/resourcemanager/compute/armcompute live test (#20048)
Alancere c005ed6
sdk/resourcemanager/network/armnetwork live test (#20331)
Alancere 36f766d
add sdk/resourcemanager/cosmos/armcosmos live test (#20705)
Alancere 9c9d62a
Increment package version after release of azcore (#20740)
azure-sdk 8bc3450
[azeventhubs] Improperly resetting etag in the checkpoint store (#20737)
richardpark-msft e1a6152
Eng workflows sync and branch cleanup additions (#20743)
azure-sdk 04b463d
[azeventhubs] Latest start position can also be inclusive (ie, get th…
richardpark-msft 8849196
Update GitHubEventProcessor version and remove pull_request_review pr…
azure-sdk 27f5ee0
Rename DisableAuthorityValidationAndInstanceDiscovery (#20746)
chlowell 2eec707
fix (#20707)
Alancere 22db2d4
AzFile (#20739)
souravgupta-msft 0cbfd88
azfile: Fixing connection string parsing logic (#20798)
souravgupta-msft d54fb08
[azadmin] fix flaky test (#20758)
gracewilcox ad8ebd9
Prepare azidentity v1.3.0 for release (#20756)
chlowell e2a6f70
Fix broken podman link (#20801)
azure-sdk a59d912
[azquery] update doc comments (#20755)
gracewilcox bd3b467
Fixed contribution section (#20752)
bobtabor-msft 132a01a
[azeventhubs,azservicebus] Some API cleanup, renames (#20754)
richardpark-msft 8db51ca
Add supporting features to enable distributed tracing (#20301) (#20708)
jhendrixMSFT 4a66b4f
Restore ARM CAE support for azcore beta (#20657)
chlowell 7d4a3cb
Upgrade to stable azcore (#20808)
chlowell 068c3be
Increment package version after release of data/azcosmos (#20807)
azure-sdk 8e0f66e
Updating changelog (#20810)
souravgupta-msft ce926c4
Add fake package to azcore (#20711)
jhendrixMSFT 1a145c5
Updating CHANGELOG.md (#20809)
siminsavani-msft 90dfc5c
changelog (#20811)
tasherif-msft c7eda59
Increment package version after release of storage/azfile (#20813)
azure-sdk 7fac0b5
Update changelog (azblob) (#20815)
siminsavani-msft 498a2ef
[azquery] migration guide (#20742)
gracewilcox ccb967e
Increment package version after release of monitor/azquery (#20820)
azure-sdk f4e6a22
[keyvault] prep for release (#20819)
gracewilcox 8fd8eda
Merge branch 'main' into feature/azdatalake
tasherif-msft c94fa00
Merge remote-tracking branch 'upstream/feature/azdatalake' into featu…
tasherif-msft fc0b2b5
Merge remote-tracking branch 'upstream/feature/azdatalake' into featu…
tasherif-msft 6fb1694
Merge remote-tracking branch 'upstream/feature/azdatalake' into featu…
tasherif-msft 4f7fe43
Merge remote-tracking branch 'upstream/feature/azdatalake' into featu…
tasherif-msft 2b127ca
added new client methods
tasherif-msft 4a76e11
moved access conditions and wrote first test
tasherif-msft a464998
added more tests
tasherif-msft 9d02de3
added path listing
tasherif-msft cda3bcf
list deleted paths
tasherif-msft e552ebf
fixed formatter and added more tests
tasherif-msft 98fc899
added more tests
tasherif-msft 9e02ba2
marker fix
tasherif-msft 6d8c039
log
tasherif-msft cdb95ab
fixed constructor validation
tasherif-msft a60f50c
comment
tasherif-msft 6011e99
assets update:
tasherif-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"AssetsRepo": "Azure/azure-sdk-assets", | ||
"AssetsRepoPrefixPath": "go", | ||
"TagPrefix": "go/storage/azdatalake", | ||
"Tag": "go/storage/azdatalake_41335bac62" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
//go:build go1.18 | ||
// +build go1.18 | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
package datalakeerror | ||
|
||
import ( | ||
"errors" | ||
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror" | ||
|
||
"github.com/Azure/azure-sdk-for-go/sdk/azcore" | ||
) | ||
|
||
// HasCode returns true if the provided error is an *azcore.ResponseError | ||
// with its ErrorCode field equal to one of the specified Codes. | ||
func HasCode(err error, codes ...Code) bool { | ||
var respErr *azcore.ResponseError | ||
if !errors.As(err, &respErr) { | ||
return false | ||
} | ||
|
||
for _, code := range codes { | ||
if respErr.ErrorCode == string(code) { | ||
return true | ||
} | ||
} | ||
|
||
return false | ||
} | ||
|
||
type StorageErrorCode string | ||
|
||
// Code - Error codes returned by the service | ||
type Code = bloberror.Code | ||
|
||
const ( | ||
ContentLengthMustBeZero StorageErrorCode = "ContentLengthMustBeZero" | ||
PathAlreadyExists StorageErrorCode = "PathAlreadyExists" | ||
InvalidFlushPosition StorageErrorCode = "InvalidFlushPosition" | ||
InvalidPropertyName StorageErrorCode = "InvalidPropertyName" | ||
InvalidSourceURI StorageErrorCode = "InvalidSourceUri" | ||
UnsupportedRestVersion StorageErrorCode = "UnsupportedRestVersion" | ||
FileSystemNotFound StorageErrorCode = "FilesystemNotFound" | ||
PathNotFound StorageErrorCode = "PathNotFound" | ||
RenameDestinationParentPathNotFound StorageErrorCode = "RenameDestinationParentPathNotFound" | ||
SourcePathNotFound StorageErrorCode = "SourcePathNotFound" | ||
DestinationPathIsBeingDeleted StorageErrorCode = "DestinationPathIsBeingDeleted" | ||
FileSystemAlreadyExists StorageErrorCode = "FilesystemAlreadyExists" | ||
FileSystemBeingDeleted StorageErrorCode = "FilesystemBeingDeleted" | ||
InvalidDestinationPath StorageErrorCode = "InvalidDestinationPath" | ||
InvalidRenameSourcePath StorageErrorCode = "InvalidRenameSourcePath" | ||
InvalidSourceOrDestinationResourceType StorageErrorCode = "InvalidSourceOrDestinationResourceType" | ||
LeaseIsAlreadyBroken StorageErrorCode = "LeaseIsAlreadyBroken" | ||
LeaseNameMismatch StorageErrorCode = "LeaseNameMismatch" | ||
PathConflict StorageErrorCode = "PathConflict" | ||
SourcePathIsBeingDeleted StorageErrorCode = "SourcePathIsBeingDeleted" | ||
) | ||
|
||
const ( | ||
AccountAlreadyExists Code = "AccountAlreadyExists" | ||
AccountBeingCreated Code = "AccountBeingCreated" | ||
AccountIsDisabled Code = "AccountIsDisabled" | ||
AppendPositionConditionNotMet Code = "AppendPositionConditionNotMet" | ||
AuthenticationFailed Code = "AuthenticationFailed" | ||
AuthorizationFailure Code = "AuthorizationFailure" | ||
AuthorizationPermissionMismatch Code = "AuthorizationPermissionMismatch" | ||
AuthorizationProtocolMismatch Code = "AuthorizationProtocolMismatch" | ||
AuthorizationResourceTypeMismatch Code = "AuthorizationResourceTypeMismatch" | ||
AuthorizationServiceMismatch Code = "AuthorizationServiceMismatch" | ||
AuthorizationSourceIPMismatch Code = "AuthorizationSourceIPMismatch" | ||
BlobAlreadyExists Code = "BlobAlreadyExists" | ||
PathArchived Code = "BlobArchived" | ||
PathBeingRehydrated Code = "BlobBeingRehydrated" | ||
PathImmutableDueToPolicy Code = "BlobImmutableDueToPolicy" | ||
PathNotArchived Code = "BlobNotArchived" | ||
BlobNotFound Code = "BlobNotFound" | ||
PathOverwritten Code = "BlobOverwritten" | ||
PathTierInadequateForContentLength Code = "BlobTierInadequateForContentLength" | ||
PathUsesCustomerSpecifiedEncryption Code = "BlobUsesCustomerSpecifiedEncryption" | ||
BlockCountExceedsLimit Code = "BlockCountExceedsLimit" | ||
BlockListTooLong Code = "BlockListTooLong" | ||
CannotChangeToLowerTier Code = "CannotChangeToLowerTier" | ||
CannotVerifyCopySource Code = "CannotVerifyCopySource" | ||
ConditionHeadersNotSupported Code = "ConditionHeadersNotSupported" | ||
ConditionNotMet Code = "ConditionNotMet" | ||
FilesystemAlreadyExists Code = "ContainerAlreadyExists" | ||
ContainerBeingDeleted Code = "ContainerBeingDeleted" | ||
ContainerDisabled Code = "ContainerDisabled" | ||
ContainerNotFound Code = "ContainerNotFound" | ||
ContentLengthLargerThanTierLimit Code = "ContentLengthLargerThanTierLimit" | ||
CopyAcrossAccountsNotSupported Code = "CopyAcrossAccountsNotSupported" | ||
CopyIDMismatch Code = "CopyIdMismatch" | ||
EmptyMetadataKey Code = "EmptyMetadataKey" | ||
FeatureVersionMismatch Code = "FeatureVersionMismatch" | ||
IncrementalCopyPathMismatch Code = "IncrementalCopyBlobMismatch" | ||
IncrementalCopyOfEralierVersionSnapshotNotAllowed Code = "IncrementalCopyOfEralierVersionSnapshotNotAllowed" | ||
IncrementalCopySourceMustBeSnapshot Code = "IncrementalCopySourceMustBeSnapshot" | ||
InfiniteLeaseDurationRequired Code = "InfiniteLeaseDurationRequired" | ||
InsufficientAccountPermissions Code = "InsufficientAccountPermissions" | ||
InternalError Code = "InternalError" | ||
InvalidAuthenticationInfo Code = "InvalidAuthenticationInfo" | ||
InvalidBlobOrBlock Code = "InvalidBlobOrBlock" | ||
InvalidPathTier Code = "InvalidBlobTier" | ||
InvalidPathType Code = "InvalidBlobType" | ||
InvalidBlockID Code = "InvalidBlockId" | ||
InvalidBlockList Code = "InvalidBlockList" | ||
InvalidHTTPVerb Code = "InvalidHttpVerb" | ||
InvalidHeaderValue Code = "InvalidHeaderValue" | ||
InvalidInput Code = "InvalidInput" | ||
InvalidMD5 Code = "InvalidMd5" | ||
InvalidMetadata Code = "InvalidMetadata" | ||
InvalidOperation Code = "InvalidOperation" | ||
InvalidPageRange Code = "InvalidPageRange" | ||
InvalidQueryParameterValue Code = "InvalidQueryParameterValue" | ||
InvalidRange Code = "InvalidRange" | ||
InvalidResourceName Code = "InvalidResourceName" | ||
InvalidSourcePathType Code = "InvalidSourceBlobType" | ||
InvalidSourcePathURL Code = "InvalidSourceBlobUrl" | ||
InvalidURI Code = "InvalidUri" | ||
InvalidVersionForPageBlobOperation Code = "InvalidVersionForPageBlobOperation" | ||
InvalidXMLDocument Code = "InvalidXmlDocument" | ||
InvalidXMLNodeValue Code = "InvalidXmlNodeValue" | ||
LeaseAlreadyBroken Code = "LeaseAlreadyBroken" | ||
LeaseAlreadyPresent Code = "LeaseAlreadyPresent" | ||
LeaseIDMismatchWithBlobOperation Code = "LeaseIdMismatchWithBlobOperation" | ||
LeaseIDMismatchWithContainerOperation Code = "LeaseIdMismatchWithContainerOperation" | ||
LeaseIDMismatchWithLeaseOperation Code = "LeaseIdMismatchWithLeaseOperation" | ||
LeaseIDMissing Code = "LeaseIdMissing" | ||
LeaseIsBreakingAndCannotBeAcquired Code = "LeaseIsBreakingAndCannotBeAcquired" | ||
LeaseIsBreakingAndCannotBeChanged Code = "LeaseIsBreakingAndCannotBeChanged" | ||
LeaseIsBrokenAndCannotBeRenewed Code = "LeaseIsBrokenAndCannotBeRenewed" | ||
LeaseLost Code = "LeaseLost" | ||
LeaseNotPresentWithBlobOperation Code = "LeaseNotPresentWithBlobOperation" | ||
LeaseNotPresentWithContainerOperation Code = "LeaseNotPresentWithContainerOperation" | ||
LeaseNotPresentWithLeaseOperation Code = "LeaseNotPresentWithLeaseOperation" | ||
MD5Mismatch Code = "Md5Mismatch" | ||
CRC64Mismatch Code = "Crc64Mismatch" | ||
MaxBlobSizeConditionNotMet Code = "MaxBlobSizeConditionNotMet" | ||
MetadataTooLarge Code = "MetadataTooLarge" | ||
MissingContentLengthHeader Code = "MissingContentLengthHeader" | ||
MissingRequiredHeader Code = "MissingRequiredHeader" | ||
MissingRequiredQueryParameter Code = "MissingRequiredQueryParameter" | ||
MissingRequiredXMLNode Code = "MissingRequiredXmlNode" | ||
MultipleConditionHeadersNotSupported Code = "MultipleConditionHeadersNotSupported" | ||
NoAuthenticationInformation Code = "NoAuthenticationInformation" | ||
NoPendingCopyOperation Code = "NoPendingCopyOperation" | ||
OperationNotAllowedOnIncrementalCopyBlob Code = "OperationNotAllowedOnIncrementalCopyBlob" | ||
OperationTimedOut Code = "OperationTimedOut" | ||
OutOfRangeInput Code = "OutOfRangeInput" | ||
OutOfRangeQueryParameterValue Code = "OutOfRangeQueryParameterValue" | ||
PendingCopyOperation Code = "PendingCopyOperation" | ||
PreviousSnapshotCannotBeNewer Code = "PreviousSnapshotCannotBeNewer" | ||
PreviousSnapshotNotFound Code = "PreviousSnapshotNotFound" | ||
PreviousSnapshotOperationNotSupported Code = "PreviousSnapshotOperationNotSupported" | ||
RequestBodyTooLarge Code = "RequestBodyTooLarge" | ||
RequestURLFailedToParse Code = "RequestUrlFailedToParse" | ||
ResourceAlreadyExists Code = "ResourceAlreadyExists" | ||
ResourceNotFound Code = "ResourceNotFound" | ||
ResourceTypeMismatch Code = "ResourceTypeMismatch" | ||
SequenceNumberConditionNotMet Code = "SequenceNumberConditionNotMet" | ||
SequenceNumberIncrementTooLarge Code = "SequenceNumberIncrementTooLarge" | ||
ServerBusy Code = "ServerBusy" | ||
SnapshotCountExceeded Code = "SnapshotCountExceeded" | ||
SnapshotOperationRateExceeded Code = "SnapshotOperationRateExceeded" | ||
SnapshotsPresent Code = "SnapshotsPresent" | ||
SourceConditionNotMet Code = "SourceConditionNotMet" | ||
SystemInUse Code = "SystemInUse" | ||
TargetConditionNotMet Code = "TargetConditionNotMet" | ||
UnauthorizedBlobOverwrite Code = "UnauthorizedBlobOverwrite" | ||
UnsupportedHTTPVerb Code = "UnsupportedHttpVerb" | ||
UnsupportedHeader Code = "UnsupportedHeader" | ||
UnsupportedQueryParameter Code = "UnsupportedQueryParameter" | ||
UnsupportedXMLNode Code = "UnsupportedXmlNode" | ||
) | ||
|
||
var ( | ||
// MissingSharedKeyCredential - Error is returned when SAS URL is being created without SharedKeyCredential. | ||
MissingSharedKeyCredential = bloberror.MissingSharedKeyCredential | ||
) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.