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

Merging new changes from master into azconfig #3076

Merged
merged 1,256 commits into from
Mar 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1256 commits
Select commit Hold shift + click to select a range
e2fd1e3
Made some classes/fields private
rickle-msft Jul 3, 2018
a06e7c2
Block blob tests
rickle-msft May 24, 2018
0328f14
Changing method of comparing flowable data to buffer list
rickle-msft May 25, 2018
8940f15
Only fromFile and fromBuffer tests remaining
rickle-msft May 26, 2018
17ee89c
Finished up transfer manager tests
rickle-msft Jun 12, 2018
5b16ddc
Resolved some CR comments
rickle-msft Jun 26, 2018
a3ed05e
CR feedback
rickle-msft Jun 26, 2018
b878e05
Updated some project infrastructure. Fixed some failing tests. Three …
rickle-msft Jul 3, 2018
852a046
Added some missing licenses to tests
rickle-msft Jun 19, 2018
73c802d
Started writing retry policy
rickle-msft Jun 19, 2018
ee89655
Implemented first test scenario. Not tested.
rickle-msft Jun 20, 2018
a8b3620
Fixed up some container tests that weren't actually validating proper…
rickle-msft Jun 21, 2018
e6ea277
Added test for max retries and made fixes that now correctly capture …
rickle-msft Jun 21, 2018
0ab3550
Got a bit more of the delay test working
rickle-msft Jun 25, 2018
b4af057
All retry tests passing
rickle-msft Jun 25, 2018
3d20c53
Some cleanup
rickle-msft Jun 25, 2018
15b13b4
Minor fixes
rickle-msft Jun 26, 2018
fce6ae0
CR feedback
rickle-msft Jun 26, 2018
eafda0a
Moved some files around. Made getters on RetryOptions package private
rickle-msft Jun 27, 2018
f72ada5
Merge branch 'New-Storage-SDK-V10-Preview-dev' into New-Storage-SDK-V…
rickle-msft Jul 3, 2018
6a5ffc4
Merge pull request #334 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Jul 3, 2018
45e4233
Merge pull request #337 from Azure/New-Storage-SDK-V10-Preview-dev
rickle-msft Jul 5, 2018
6c783b1
Removed an extra file left over from a merge
rickle-msft Jul 5, 2018
57ab5ab
Merge pull request #338 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Jul 5, 2018
b7924c4
Merge pull request #339 from Azure/New-Storage-SDK-V10-Preview-dev
rickle-msft Jul 5, 2018
c1f4ed6
Update README.md
Jul 10, 2018
b35962e
Merge pull request #340 from Azure/seguler-patch-1
rickle-msft Jul 10, 2018
a04ece8
Tried making some swagger changes
rickle-msft Jul 7, 2018
8d7207a
Another iteration of swagger generation
rickle-msft Jul 10, 2018
b521b6c
Everything broken
rickle-msft Jul 11, 2018
259a860
Generated swagger with proper (de)serialization
rickle-msft Jul 12, 2018
7ac2d39
Merge remote-tracking branch 'upstream/New-Storage-SDK-V10-Preview-de…
rickle-msft Jul 12, 2018
40f6abf
Added support for setBlobTier. No tests or samples
rickle-msft Jul 6, 2018
c1531e0
Tests for blob tier
rickle-msft Jul 6, 2018
d4aae8d
CR feedback
rickle-msft Jul 13, 2018
7e07167
Make AzureStorageCheckpointLeaseManager sync internally to get around…
JamesBirdsall Jul 16, 2018
68297c6
Doc for append blob create
rickle-msft Jun 19, 2018
44b33a1
Updated file reference
rickle-msft Jun 19, 2018
d6fcc9f
Added apiNote
rickle-msft Jun 19, 2018
a3aef84
Fixed sample ref path again
rickle-msft Jun 19, 2018
1945a68
Addressing the repo root as ..
rickle-msft Jun 19, 2018
351c7b6
Started on ref samples. Maybe a third of methods done.
rickle-msft Jul 5, 2018
4c78571
Moved the sample tags to the bottom
rickle-msft Jul 10, 2018
4b2cc27
added a few more samples
rickle-msft Jul 10, 2018
80fc36c
More samples
rickle-msft Jul 10, 2018
42cea58
More samples
rickle-msft Jul 11, 2018
73651ec
More samples
rickle-msft Jul 12, 2018
7b67f41
PageBlob Samples
rickle-msft Jul 12, 2018
643ab37
Added lease samples
rickle-msft Jul 16, 2018
6e373f2
api ref samples complete
rickle-msft Jul 16, 2018
23156e8
Merge pull request #342 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Jul 16, 2018
87d756d
soft delete support. no tests or samples yet
rickle-msft Jul 6, 2018
12a6333
Changelog
rickle-msft Jul 6, 2018
dd054ec
Working on tests
rickle-msft Jul 6, 2018
8a13b51
Soft delete tests
rickle-msft Jul 12, 2018
f3305bd
Changelog and BreakingChanges
rickle-msft Jul 16, 2018
4ac72b8
CR feedback
rickle-msft Jul 16, 2018
24cc63b
Added api ref samples for tiers and soft delete
rickle-msft Jul 16, 2018
bdb3681
Fixed swagger README
rickle-msft Jul 17, 2018
8df1f37
Update EPH dependences. Update EPH version for release. (#353)
JamesBirdsall Jul 25, 2018
49ce678
Fixed an api note to generate docs
rickle-msft Jul 26, 2018
2f481b2
Appveyor is running EPH tests that should not run (#356)
JamesBirdsall Jul 30, 2018
a440ee7
PutBlockFromURL
rickle-msft Jul 30, 2018
e56860c
Improved ContainerURL tests
rickle-msft Jul 30, 2018
8c34649
Updated api ref samples
rickle-msft Jul 31, 2018
0d2069e
Merge remote-tracking branch 'upstream/New-Storage-SDK-V10-Preview-de…
rickle-msft Jul 31, 2018
dd704b1
Merge pull request #346 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Jul 31, 2018
4238af3
Cleaned up some types in tests that were causing failures
rickle-msft Jul 31, 2018
c6781b1
Appveyor detection fix (#358)
JamesBirdsall Aug 3, 2018
14c5cb8
Fixing API ref links
Aug 7, 2018
f79b87b
Merge pull request #348 from seguler/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 7, 2018
22b0459
10.0.2-Preview release prep
rickle-msft Aug 7, 2018
c4db14e
Merge remote-tracking branch 'upstream/New-Storage-SDK-V10-Preview-de…
rickle-msft Aug 7, 2018
a48518b
Updated dependency and javadoc configuration
rickle-msft Aug 7, 2018
cd74c1f
Generated with new autorest version to comply with new runtime
rickle-msft Aug 7, 2018
d4c4d99
Merge pull request #349 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 7, 2018
b9965eb
Merge pull request #350 from Azure/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 7, 2018
4bef6f4
Updated dependency issue. Releasing 10.0.3-Preview to fix
rickle-msft Aug 8, 2018
1e7f879
Merge pull request #351 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 8, 2018
dfa24e5
Merge pull request #352 from Azure/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 8, 2018
fb1fbcb
EPH 2.0.1 release -- fix deadlocks (#357)
JamesBirdsall Aug 8, 2018
6ba24a3
Distinguish between nonexistent entity and other errors which return …
JamesBirdsall Aug 9, 2018
de1d995
Update how to add properties (#361)
sabeegrewal Aug 9, 2018
efb965d
Websockets support (#362)
SreeramGarlapati Aug 9, 2018
6b721be
Update Overview.md (#363)
ScottMacWatters Aug 10, 2018
dc0fd2b
Fix params
lrdcasimir Aug 11, 2018
8a4e700
Added worm support
rickle-msft Aug 1, 2018
945dc72
getAccountInfo apis added
rickle-msft Jul 31, 2018
e478095
Improved append blob tests
rickle-msft Aug 1, 2018
072afc9
Static websites
rickle-msft Aug 1, 2018
4c98782
Updated blob tests
rickle-msft Aug 3, 2018
2b2df98
Most page blob tests
rickle-msft Aug 6, 2018
014439a
Retry fixes
rickle-msft Aug 7, 2018
83c39f6
Fix Overview files & update proton library version (#365)
SreeramGarlapati Aug 14, 2018
17ffe32
Service SAS Signature Values correctly handles nulllable fields
lrdcasimir Aug 14, 2018
ececde6
Merge pull request #357 from lrdcasimir/fix-sas-null-parameters
rickle-msft Aug 16, 2018
34c94e2
Merge remote-tracking branch 'upstream/New-Storage-SDK-V10-Preview-de…
rickle-msft Aug 16, 2018
dbb2b05
Page blob tests updates
rickle-msft Aug 6, 2018
8c87c15
Fixing links for API reference
Aug 21, 2018
52d39e4
Got some boilerplate going
rickle-msft Jul 24, 2018
be948ac
Got some preliminary tests written and passing
rickle-msft Jul 24, 2018
ed61030
Added some tests
rickle-msft Jul 26, 2018
c1b997e
downloadToBuffer complete
rickle-msft Jul 27, 2018
788abbf
downloadBlobToFile written
rickle-msft Jul 28, 2018
523c624
Nothing really
rickle-msft Jul 30, 2018
be67548
Basic test passing
rickle-msft Jul 31, 2018
cb3f609
downloadToFileTests complete
rickle-msft Jul 31, 2018
5986632
Moved sample tag
rickle-msft Jul 31, 2018
45ac08d
added a cast to prevent a potential overflow
rickle-msft Aug 1, 2018
88cbc7b
Added etag locking
rickle-msft Aug 2, 2018
49abf89
Made the options properties final as possible
rickle-msft Aug 2, 2018
fef79d6
CR feedback
rickle-msft Aug 8, 2018
4e8d8c9
Nothing special
rickle-msft Aug 8, 2018
b27ee68
Fixed issue in etag locking that messed up access conditions
rickle-msft Aug 9, 2018
14f2c5b
Removed memory mapping from TransferManager
rickle-msft Aug 16, 2018
cbef892
CR feedback
rickle-msft Aug 21, 2018
b82363a
ServiceSAS tests
rickle-msft Aug 16, 2018
9f6b2da
SAS tests complete
rickle-msft Aug 17, 2018
42f7625
Updated links for api refs
rickle-msft Aug 22, 2018
59cef17
Logging tests
rickle-msft Aug 21, 2018
0649e4f
Updated changelog
rickle-msft Aug 22, 2018
92cd335
Added a test to ensure uploadFromFile is replayable
rickle-msft Aug 22, 2018
fd2bf93
Last minute cleanup before release
rickle-msft Aug 22, 2018
549b1ae
Merge pull request #360 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 23, 2018
70eed09
Merge pull request #361 from Azure/New-Storage-SDK-V10-Preview-dev
rickle-msft Aug 23, 2018
f1ee73c
Fixed some transiet failures in incremental copy tests
rickle-msft Aug 24, 2018
c909102
RequestResponseChannel should not throw OperationCancelled. (#372)
SreeramGarlapati Aug 28, 2018
0648008
Implement retry mechanism for Receiver and Sender creation (#373)
SreeramGarlapati Aug 30, 2018
5cbef3b
update version for releasing version 1.1.0 (#374)
SreeramGarlapati Aug 31, 2018
2af39e3
Merge branch 'master' into dev
SreeramGarlapati Aug 31, 2018
a49e718
Release commit for package com.microsoft.azure.eventhubs version 1.1.…
SreeramGarlapati Aug 31, 2018
e6397e7
Merge branch 'dev' into master
SreeramGarlapati Aug 31, 2018
e33f686
Interfaces for helper types updated
rickle-msft Aug 28, 2018
d15c864
Added reliable download functionality to DownloadResponse
rickle-msft Aug 28, 2018
7489ac1
Most tests converted to downloadResponse
rickle-msft Aug 30, 2018
9e688ba
Removed RetryReader
rickle-msft Aug 30, 2018
3df742e
Cleanup
rickle-msft Sep 7, 2018
be2d206
Reverted to retrying on IOException
rickle-msft Sep 7, 2018
ceb8447
Small doc update
rickle-msft Sep 7, 2018
d45d893
Added context class
rickle-msft Aug 23, 2018
086fbde
Switched to autorest generated headers and access conditions
rickle-msft Aug 31, 2018
8c9188e
Fixed tests
rickle-msft Sep 4, 2018
a3894e8
Extracted TransferManager inner classes to top level
rickle-msft Sep 10, 2018
e839bc9
Added hints to user that Flowables for upload must be replayable
rickle-msft Aug 13, 2018
87478ee
Incorporated new autorest exception type
rickle-msft Aug 21, 2018
8edb5ac
Updated some tests
rickle-msft Sep 10, 2018
f4cd2ed
Changelog breakingChanges
rickle-msft Sep 10, 2018
184f25f
Generated with context feature
rickle-msft Sep 5, 2018
d319f89
Added context parameter. need to add tests
rickle-msft Sep 6, 2018
21668ad
Started context tests
rickle-msft Sep 7, 2018
e6a46d4
Infra for context tests
rickle-msft Sep 8, 2018
356a167
Halfway through context tests
rickle-msft Sep 8, 2018
26642fc
Added tests for context
rickle-msft Sep 10, 2018
653791b
Changelog breakingChanges
rickle-msft Sep 10, 2018
7c140c2
Deleted some old files
rickle-msft Sep 11, 2018
edb4ca8
Fixed a broken test
rickle-msft Sep 11, 2018
c670ee2
Release cleanup
rickle-msft Sep 11, 2018
2d843c4
Merge pull request #364 from rickle-msft/New-Storage-SDK-V10-Preview-dev
rickle-msft Sep 11, 2018
ebdc214
Merge pull request #365 from Azure/New-Storage-SDK-V10-Preview-dev
rickle-msft Sep 11, 2018
1440ec7
Added min overloads
rickle-msft Sep 18, 2018
b385527
WebSockets Proxy support (#378)
SreeramGarlapati Sep 21, 2018
a2959c0
followup: websockets proxy support (#381)
SreeramGarlapati Sep 21, 2018
c307fe5
Merge pull request #382 from Azure/dev
SreeramGarlapati Sep 21, 2018
a85a662
Merge pull request #383 from Azure/master
SreeramGarlapati Sep 21, 2018
f117856
Cleaned up and reformatted some docs immediately postGA. Trying estab…
rickle-msft Sep 21, 2018
6ee6bd4
Added some test infra and logging to help debug errors in CI
rickle-msft Sep 21, 2018
e960860
Added package info for blob package for javadoc description
rickle-msft Sep 24, 2018
5c129b1
Fixed up api ref samples link and CI
rickle-msft Sep 24, 2018
6d90a30
Added deep sync copy support
rickle-msft Sep 26, 2018
5965a69
Merge pull request #372 from rickle-msft/dev
prjain-msft Oct 5, 2018
c362ce7
Added support for progress reporting
rickle-msft Oct 11, 2018
a1e7012
Fix failing unit tests (#381)
mikeharder Oct 12, 2018
9a28f04
Merge pull request #380 from rickle-msft/dev
prjain-msft Oct 12, 2018
d8d0477
Fixed some overflow bugs in TransferManager and reliable download set…
rickle-msft Oct 10, 2018
42e015f
CR feedback and updated Contributing doc
rickle-msft Oct 12, 2018
06fa772
Merge pull request #387 from rickle-msft/dev
prjain-msft Oct 22, 2018
5c11555
Added issue template
rickle-msft Oct 24, 2018
9f0c9f1
Added min overloads
rickle-msft Sep 18, 2018
b7bbf05
Cleaned up and reformatted some docs immediately postGA. Trying estab…
rickle-msft Sep 21, 2018
8a82566
Added some test infra and logging to help debug errors in CI
rickle-msft Sep 21, 2018
d0d11ac
Added package info for blob package for javadoc description
rickle-msft Sep 24, 2018
73fb80a
Fixed up api ref samples link and CI
rickle-msft Sep 24, 2018
cc63f2e
Added deep sync copy support
rickle-msft Sep 26, 2018
d976ce6
Added support for progress reporting
rickle-msft Oct 11, 2018
cd65ffd
Fixed some overflow bugs in TransferManager and reliable download set…
rickle-msft Oct 10, 2018
fe328c6
CR feedback and updated Contributing doc
rickle-msft Oct 12, 2018
1992f36
Release prep
rickle-msft Oct 29, 2018
683115d
Merge remote-tracking branch 'upstream/dev' into dev
rickle-msft Oct 29, 2018
988fd70
Merge pull request #391 from rickle-msft/dev
prjain-msft Oct 29, 2018
715496a
Merge pull request #392 from Azure/dev
rickle-msft Oct 29, 2018
77ef002
* Fixed a de-dup - of Delivery event issue on proton receivelink (#391)
SreeramGarlapati Oct 30, 2018
f311f6d
Updated LoggingFactory to also log request HTTP method, URL, and head…
seanmcc-msft Oct 31, 2018
d9bd14c
Updated README to include table
rickle-msft Nov 1, 2018
777b9d9
Update README.md
Nov 2, 2018
5365419
Update README.md
Nov 2, 2018
9041ee1
Update version numbers for EPH 2.0.2 release (#394)
JamesBirdsall Nov 4, 2018
1fb2d25
Fixed a flaky block blob test
rickle-msft Oct 30, 2018
19f4cd0
Added policy to set request on response object
rickle-msft Nov 7, 2018
9df20cf
Merge pull request #404 from rickle-msft/dev
rickle-msft Nov 14, 2018
88cba9f
Added custom deserializer to fix bug that would sometimes return inco…
rickle-msft Nov 7, 2018
d0b4b88
Merge pull request #1 from rickle-msft/async-blockListDeserialization
rickle-msft Nov 16, 2018
348cb4d
Merge pull request #405 from rickle-msft/dev
rickle-msft Nov 16, 2018
7372eef
Added support for slf4j. Added default logging
rickle-msft Nov 6, 2018
82fa66d
Merge branch 'dev' of github.com:rickle-msft/azure-storage-java into dev
rickle-msft Nov 16, 2018
9a6a2f8
Merge pull request #406 from rickle-msft/dev
rickle-msft Nov 16, 2018
628518e
10.3.0 release prep
rickle-msft Nov 19, 2018
147551b
Merge pull request #407 from rickle-msft/dev
rickle-msft Nov 19, 2018
1d0be05
Update ChangeLog.txt
rickle-msft Nov 19, 2018
13abebb
Update ChangeLog.txt
rickle-msft Nov 19, 2018
e5d51ee
Merge pull request #408 from Azure/dev
rickle-msft Nov 20, 2018
b95c07b
EPH PartitionPump fixes (#401)
JamesBirdsall Nov 29, 2018
da2302c
Handle tmpdir with no trailing separator.
ataylor284 Nov 29, 2018
561936b
Merge pull request #414 from ataylor284/fix-logging-path2
rickle-msft Nov 30, 2018
9a5a39d
Fix IO pipe stuck issue due to aggressive timer scheduling (#402)
sjkwak Dec 4, 2018
f5b779d
Prep for releasing client 1.3.0 and EPH 2.1.0 (#403)
JamesBirdsall Dec 6, 2018
e68c319
Release client 2.0.0 and EPH 2.2.0 (#416)
sjkwak Jan 4, 2019
9ca0d32
Removed some lingering dev notes
rickle-msft Nov 26, 2018
78d0d3a
Changed test behavior to allow for absence of some creds
rickle-msft Nov 27, 2018
5e7dfba
Release prep
rickle-msft Jan 11, 2019
5e74cb4
Merge pull request #421 from rickle-msft/dev
rickle-msft Jan 11, 2019
c22bdf0
Merge pull request #422 from Azure/dev
rickle-msft Jan 11, 2019
d25723c
Upload from non replayable flowable
rickle-msft Nov 16, 2018
e6cc684
Merge pull request #434 from rickle-msft/dev
rickle-msft Feb 15, 2019
d4a55dc
10.5.0 release prep
rickle-msft Feb 15, 2019
e463b46
Merge pull request #435 from rickle-msft/dev
rickle-msft Feb 15, 2019
12d9633
Merge pull request #436 from Azure/dev
rickle-msft Feb 15, 2019
a8c2f43
Add 'eventhubs/data-plane/' from commit 'e68c319fdcbe6531ec54cb5d22ea…
mssfang Feb 22, 2019
c6f701d
Standardize indention and publishing (#2974)
weshaggard Feb 26, 2019
98fa39a
SpotBug P3 Fixes (#2973)
conniey Feb 27, 2019
cea0adf
Bumping up resource-manager parent and eventgrid.v2019_01_01 to versi…
anuchandy Mar 1, 2019
fc17232
code restructure
g2vinay Mar 4, 2019
7765874
Merge remote-tracking branch 'storagesource/master' into storage-code…
g2vinay Mar 4, 2019
47bebc8
Merge branch 'master' into storage-code-migration
g2vinay Mar 4, 2019
d89570c
[AutoPR privatedns/resource-manager] Add private dns module name for …
AutorestCI Mar 4, 2019
8709cf1
Merge branch 'master' into storage-code-migration
g2vinay Mar 4, 2019
cdd3296
SpotBug P3 fixes (#2976)
conniey Mar 5, 2019
9b47134
Update YAML formatting (#3033)
mikeharder Mar 5, 2019
12a7b99
adding impression pixel (#3024)
scbedd Mar 5, 2019
b0558ba
Add .editorconfig and .gitattributes (#3036)
conniey Mar 6, 2019
32d5619
Enable Checkstyle fail on error / violation for Key Vault (#2969)
JonathanGiles Mar 6, 2019
52f584b
Eventhubs-Java: init
mssfang Mar 6, 2019
50ca1c7
Record playback integration (#2870)
g2vinay Mar 7, 2019
be92b63
Normalising lines (#3050)
conniey Mar 7, 2019
adb61b4
Merge branch 'master' into eventhubs-java-3
JonathanGiles Mar 7, 2019
85ee865
Merge branch 'master' into storage-code-migration
JonathanGiles Mar 7, 2019
416e8d5
Merge pull request #3046 from mssfang/eventhubs-java-3
weshaggard Mar 8, 2019
e449983
Merge pull request #3014 from g2vinay/storage-code-migration
weshaggard Mar 8, 2019
cd3f7ae
Fix for issue #2874. Add a cache for the tokens in case we are gettin…
praries880 Mar 9, 2019
faa015f
Run dependency checker during Analyze (#3075)
bsiegel Mar 9, 2019
05d929a
Merge branch 'master' of https://github.com/azure/azure-sdk-for-java …
conniey Mar 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .azure-pipelines/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,28 @@ jobs:
publishJUnitResults: false
goals: 'site:site site:stage'

- script: |
git clone https://github.com/JonathanGiles/DependencyChecker.git
mkdir input && cp dependencies.json input/
displayName: 'Download dependency checker'

- task: Maven@3
displayName: 'Analyze dependencies'
inputs:
mavenPomFile: 'DependencyChecker/pom.xml'
options: '-Dexec.args="-showall"'
mavenOptions: '$(LoggingOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
goals: 'clean package exec:java'

- powershell: |
copy -r target/staging $(Build.ArtifactStagingDirectory)
copy eng/code-quality-reports/src/main/resources/index.html $(Build.ArtifactStagingDirectory)
copy eng/spotbugs-aggregate-report/target/spotbugs/spotbugsXml.html (Join-Path $(Build.ArtifactStagingDirectory) "staging")
copy output/dependencies.html (Join-Path $(Build.ArtifactStagingDirectory) "staging")
displayName: 'Copy reports to artifact staging'

- task: PublishBuildArtifacts@1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Component | Build Status |
| --------- | ------------ |
| Management Libraries | [![Build Status](https://travis-ci.org/Azure/azure-sdk-for-java.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-java) |
| Client Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/17?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=17) |
| Client Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/17?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=17)<br>[![Build Documentation](https://img.shields.io/badge/documentation-published-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html)|

:+1: [Try Azure for FREE](http://go.microsoft.com/fwlink/?LinkId=330212)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
* Managed Service Identity token based credentials for use with a REST Service Client.
Expand All @@ -24,6 +27,9 @@ public final class MSICredentials{
//
private final List<Integer> retrySlots = new ArrayList<>();
//
private final Lock lock = new ReentrantLock();

private final ConcurrentHashMap<String, MSIToken> cache = new ConcurrentHashMap<>();
private final MSIConfigurationForVirtualMachine configForVM;
private final MSIConfigurationForAppService configForAppService;
private final HostType hostType;
Expand Down Expand Up @@ -157,7 +163,7 @@ public void updateObjectId(String objectId) {
public MSIToken getToken(String tokenAudience) throws IOException, AzureMSICredentialException{
switch (hostType) {
case VIRTUAL_MACHINE:
return this.retrieveTokenFromIDMSWithRetry(tokenAudience == null ? this.configForVM.resource() : tokenAudience);
return this.getTokenForVirtualMachineFromIMDSEndpoint(tokenAudience == null ? this.configForVM.resource() : tokenAudience);
case APP_SERVICE:
return this.getTokenForAppService(tokenAudience);
default:
Expand Down Expand Up @@ -217,6 +223,51 @@ private MSIToken getTokenForAppService(String tokenAudience) throws IOException,
}
}

private MSIToken getTokenForVirtualMachineFromIMDSEndpoint(String tokenAudience) throws AzureMSICredentialException {
String tokenIdentifier = tokenAudience;

String extraIdentifier = null;
if (this.configForVM.objectId() != null)
{
extraIdentifier = configForVM.objectId();
} else if (this.configForVM.clientId() != null) {
extraIdentifier = configForVM.clientId();
} else if (this.configForVM.identityId() != null) {
extraIdentifier = configForVM.identityId();
}

if (extraIdentifier != null) {
tokenIdentifier = tokenIdentifier + "#" + extraIdentifier;
}

MSIToken token = cache.get(tokenIdentifier);
if (token != null && !token.isExpired()) {
return token;
}

lock.lock();

try {
token = cache.get(tokenIdentifier);
if (token != null && !token.isExpired()) {
return token;
}

try {
token = retrieveTokenFromIDMSWithRetry(tokenAudience);
if (token != null) {
cache.put(tokenIdentifier, token);
}
} catch (IOException exception) {
throw new AzureMSICredentialException(exception);
}

return token;
} finally {
lock.unlock();
}
}

private MSIToken retrieveTokenFromIDMSWithRetry(String tokenAudience) throws AzureMSICredentialException, IOException {
StringBuilder payload = new StringBuilder();
final int imdsUpgradeTimeInMs = 70 * 1000;
Expand Down
6 changes: 6 additions & 0 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"projectName": "azure-sdk-for-java",
"pomUrls": ["file:./pom.client.xml"]
}
]
4 changes: 4 additions & 0 deletions eng/code-quality-reports/src/main/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ <h2>Azure Java SDK</h2>
<ion-icon name="book"></ion-icon>
<a href="staging/index.html" target="_blank" class="links">Maven Site</a>
</li>
<li class="list-group-item sub-component">
<ion-icon name="clipboard"></ion-icon>
<a href="staging/dependencies.html" target="_blank" class="links">Dependencies</a>
</li>
<li class="list-group-item sub-component">
<ion-icon name="bug"></ion-icon>
<a href="staging/spotbugsXml.html" target="_blank" class="links">SpotBugs (Aggregate)</a>
Expand Down
26 changes: 26 additions & 0 deletions eventhubs/data-plane/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Default behavior: if Git thinks a file is text (as opposed to binary), it
# will normalize line endings to LF in the repository, but convert to your
# platform's native line endings on checkout (e.g., CRLF for Windows).
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout. E.g.,
#*.c text

# Declare files that will always have CRLF line endings on checkout. E.g.,
#*.sln text eol=crlf

# Declare files that will always have LF line endings on checkout. E.g.,
*.sh text eol=lf

# Denote all files that should not have line endings normalized, should not be
# merged, and should not show in a textual diff.
*.docm binary
*.docx binary
*.ico binary
*.lib binary
*.png binary
*.pptx binary
*.snk binary
*.vsdx binary
*.xps binary
50 changes: 50 additions & 0 deletions eventhubs/data-plane/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contribute or Provide Feedback for Azure Event Hubs Java library

## Table of Contents

- [Code of Conduct](#code-of-conduct)
- [Filing Issues](#filing-issues)
- [Pull Requests](#pull-requests)
- [General guidelines](#general-guidelines)
- [Testing guidelines](#testing-guidelines)

## Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

## Filing Issues

You can find all of the issues that have been filed in the [Issues](https://github.com/Azure/azure-event-hubs-java/issues) section of the repository.

If you encounter any bugs, please file an issue [here](https://github.com/Azure/azure-event-hubs-java/issues/new) and make sure to fill out the provided template with the requested information.

To suggest a new feature or changes that could be made, file an issue the same way you would for a bug, but remove the provided template and replace it with information about your suggestion.

### Pull Requests

If you are thinking about making a large change to this library, **break up the change into small, logical, testable chunks, and organize your pull requests accordingly**.

You can find all of the pull requests that have been opened in the [Pull Request](https://github.com/Azure/azure-event-hubs-java/pulls) section of the repository.

To open your own pull request, click [here](https://github.com/Azure/azure-event-hubs-java/compare). When creating a pull request, keep the following in mind:
- Make sure you are pointing to the fork and branch that your changes were made in
- The pull request template that is provided **should be filled out**; this is not something that should just be deleted or ignored when the pull request is created
- Deleting or ignoring this template will elongate the time it takes for your pull request to be reviewed

#### General guidelines

The following guidelines must be followed in **EVERY** pull request that is opened.

- Title of the pull request is clear and informative
- There are a small number of commits that each have an informative message
- A description of the changes the pull request makes is included, and a reference to the bug/issue the pull request fixes is included, if applicable
- All files have the Microsoft copyright header

#### Testing guidelines

The following guidelines must be followed in **EVERY** pull request that is opened.

- Pull request includes test coverage for the included changes
- Tests must use xunit
- Test code should not contain hard coded values for resource names or similar values
- Test should not use App.config files for settings
11 changes: 11 additions & 0 deletions eventhubs/data-plane/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Actual Behavior
1.
2.

## Expected Behavior
1.
2.

## Versions
- OS platform and version:
- Maven package version or commit ID:
16 changes: 16 additions & 0 deletions eventhubs/data-plane/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Description
<!--
Please add an informative description that covers the changes made by the pull request.

If applicable, reference the bug/issue that this pull request fixes here.
-->

This checklist is used to make sure that common guidelines for a pull request are followed.

- [ ] **I have read the [contribution guidelines](./CONTRIBUTING.md).**
- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR.
- [ ] The pull request does not introduce breaking changes (unless a major version change occurs in the assembly and module).
- [ ] If applicable, the public code is properly documented.
- [ ] Pull request includes test coverage for the included changes.
- [ ] The code builds without any errors.
Loading