Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
94eeb99
Fix authorization publishing (#5203)
mitchdenny Sep 3, 2019
e03fa16
Update cognitive services parent POM to track 1 parent (#5202)
mitchdenny Sep 3, 2019
8b394a4
Bumping version number to 7.1 preview. (#5204)
mitchdenny Sep 3, 2019
f0587b2
Referenced track 1 parent and bumped version. (#5212)
mitchdenny Sep 3, 2019
f3988c2
Linked to track 1 parent pom and bumped version. (#5213)
mitchdenny Sep 3, 2019
1b5f1a9
Fix incorrect artifact name. (#5219)
mitchdenny Sep 3, 2019
702a38a
Amqp tracing support (#5061)
samvaity Sep 3, 2019
066e3ba
Add support for user proxy configuration (#3631)
conniey Sep 3, 2019
c7e72a7
Add mvn install on parent/pom.xml (#5225)
conniey Sep 3, 2019
b1b7eaa
Event Processor load balancer (#5034)
srnagar Sep 3, 2019
d185d98
Storage: Basic Request Validation (#5188)
jaschrep-msft Sep 3, 2019
8b0c754
Misc fixes (#5190)
srnagar Sep 3, 2019
802351f
Avoid buffering for download in storage (#5115)
jianghaolu Sep 3, 2019
5e7f2d5
System properties (#5224)
conniey Sep 4, 2019
b111c62
Integrates okHttp into the build process. Resolves spotbugs and check…
JonathanGiles Sep 4, 2019
5e4cc59
Disabled test and increased timeout. (#5216)
mitchdenny Sep 4, 2019
47ffff7
Bumped version of jackon to 2.9.9.3 because of CVE. (#4965)
mitchdenny Sep 4, 2019
81a8f91
Fixed the issue which request id did not take down in json file. (#5230)
sima-zhu Sep 4, 2019
c58d822
Generate storage-file with JSON share permission API (#5227)
jianghaolu Sep 4, 2019
b83b91e
Adding okhttp dependency to spotbugs pom (#5238)
anuchandy Sep 4, 2019
c96291b
Fixes core app conig check style error (#5191)
mssfang Sep 4, 2019
7546718
HttpClient plugin updates: centralize buffer resource management in o…
anuchandy Sep 4, 2019
5f24a89
Add PagedFlux and PagedIterable to Files and Queues (#5186)
alzimmermsft Sep 4, 2019
774085d
Fail at end for running live tests (#5241)
alzimmermsft Sep 4, 2019
8132509
We need to build tests so that the azure-core test jar is available f…
JonathanGiles Sep 4, 2019
a749b65
Use logger.logExceptionAsError in Load balancer (#5240)
conniey Sep 4, 2019
559cdeb
Fixed the failed live tests (#5242)
sima-zhu Sep 4, 2019
690f8cb
Turn off shallow cloning. (#5231)
mitchdenny Sep 5, 2019
e401e65
Removed condition on spotbugs roll-up. (#5232)
mitchdenny Sep 5, 2019
f440dd6
Implement unexpectlengthexception in azure core (#5108)
sima-zhu Sep 5, 2019
534be8a
Policy: generate package 2019_06_01 (#5217)
xseeseesee Sep 5, 2019
a7771a9
Container Services: generate 2019 08 01 version (#5218)
ChenTanyi Sep 5, 2019
03d261e
Fixed the checkstyle complains. (#5260)
sima-zhu Sep 5, 2019
ef61656
Setting default connectionMode to DIRECT (#5262)
kushagraThapar Sep 5, 2019
6183444
Fix share permission APIs (#5149)
jianghaolu Sep 5, 2019
cab5d63
Update event processor API based on user study (#5093)
srnagar Sep 5, 2019
e7cf04d
Add synchronous Event Hub Consumer (#5253)
conniey Sep 6, 2019
ba38110
Fix OkHttp errors. (#5273)
conniey Sep 6, 2019
03765c4
Resources: generated package 2019_06_01 (#5274)
xseeseesee Sep 6, 2019
8e6000c
Enforce line length (120 characters) for code (#5127)
vhvb1989 Sep 6, 2019
e22b9e3
Identity server bug fix. (#5272)
g2vinay Sep 6, 2019
9411e74
Suppress LineLength for Track 1 (#5276)
conniey Sep 6, 2019
d85d75c
Storage restparity (#5233)
gapra-msft Sep 6, 2019
08789cb
Storage SAS Code Snippets (#5258)
gapra-msft Sep 6, 2019
98d623d
Adding sync api for scripts (#5105)
mbhaskar Sep 6, 2019
6aadf92
Fixed live test and only record tests that support playback (#5282)
alzimmermsft Sep 6, 2019
a471148
Update Windows VMImage (#5252)
chidozieononiwu Sep 6, 2019
50e8b3e
Msal extension + SharedTokenCacheCredential (#5152)
qarni Sep 6, 2019
f5720b7
azure-cosmos@3.2.0 (#5285)
christopheranderson Sep 7, 2019
27ebd1f
Remove unused imports. (#5293)
conniey Sep 8, 2019
708e238
Get media services generating the right packages. (#5256)
mitchdenny Sep 9, 2019
30d4e0c
Disable condition on checkstyle step and add skip variable. (#5294)
mitchdenny Sep 9, 2019
f2ae605
Capture Encryption Header for Playback Tests (#5297)
alzimmermsft Sep 9, 2019
a55d5dd
Adds okhttp and netty artifacts. (#5301)
mitchdenny Sep 9, 2019
e4fadb3
Added support for put range from URL (#5290)
gapra-msft Sep 9, 2019
b936967
Increase memory for Maven (#5304)
mitchdenny Sep 9, 2019
3f6826b
Partition Manager implementation with Storage Blob (#5278)
srnagar Sep 9, 2019
45a5bdd
Add timeout for sync API in queue and file (#5251)
sima-zhu Sep 9, 2019
2052811
Set tier on upload/copy; Rehydrate Priority (#5229)
jaschrep-msft Sep 9, 2019
b44c98e
Fix compile issue due to Storage API change (#5309)
alzimmermsft Sep 9, 2019
ae4aad4
Cpk (#5291)
jaschrep-msft Sep 10, 2019
0c66044
Review Hand Crafted Model Classes (#5268)
alzimmermsft Sep 10, 2019
8188b57
Reduce memory footprint of integration tests (#5310)
conniey Sep 10, 2019
16e5dc5
Adding codeSnippets to Blob client and async client (#5245)
vhvb1989 Sep 10, 2019
6d7504b
Adding code snippets for sync and async container client (#5270)
vhvb1989 Sep 10, 2019
6eab834
Adding code snippets for blob client and container builders (#5279)
vhvb1989 Sep 10, 2019
34f7859
adding code snippets for BlobService Sync and Async clients (#5281)
vhvb1989 Sep 10, 2019
8c346f7
Event Hubs preview 3 documentation changes. (#5303)
conniey Sep 10, 2019
7dce43c
adding code snippets for BlockBlob Async and sync clients (#5249)
vhvb1989 Sep 10, 2019
abc9ea8
Fixing up queues (#5319)
alzimmermsft Sep 10, 2019
c846a67
CHANGELOG for AppConfiguration Preview 3 (#5325)
alzimmermsft Sep 10, 2019
3fb87be
Fork spotbugs to prevent build growing large. (#5331)
conniey Sep 10, 2019
a821b36
Updated change log for preview 3 (#5269)
sima-zhu Sep 10, 2019
7f0d64e
Changelog for Storage Blobs Preview 3 (#5302)
alzimmermsft Sep 10, 2019
b7885af
Build timeout fix (#5332)
g2vinay Sep 10, 2019
e442cc4
Update README.md
joshfree Sep 11, 2019
ab5796c
Update README.md
joshfree Sep 11, 2019
12f3795
KV certificates API Implementation (#5264)
g2vinay Sep 11, 2019
dba5c2b
KV Certificates Artifacts Generation Config (#5340)
g2vinay Sep 11, 2019
f3a0f2f
Update README for checkpoint store (#5315)
srnagar Sep 11, 2019
4375acb
Update package version to 1.0.0-preview.3
joshfree Sep 11, 2019
b03a83f
Bump versions for Preview 4 release (#5347)
conniey Sep 11, 2019
ee55fb0
Improve documentation for azure-identity (#5327)
jianghaolu Sep 11, 2019
085c857
Update README.md (#5350)
alzimmermsft Sep 11, 2019
7d0e983
Skip persisten cache tests in identity (#5308)
jianghaolu Sep 11, 2019
84720ac
Update EventProcessor sample. (#5352)
conniey Sep 11, 2019
9430735
Use Javabeans In Getters and Setters (#5338)
alzimmermsft Sep 12, 2019
a6bb33f
Use commit hash link for documentation (#5353)
alzimmermsft Sep 12, 2019
5ba941d
Fixed missing variable at live tests (#5357)
sima-zhu Sep 12, 2019
abcf57d
Modules for Blobs and Queues Encryption (#5322)
alzimmermsft Sep 12, 2019
5431213
Turn on Custom Checkstyles in Storage (#5363)
alzimmermsft Sep 12, 2019
f1d6a95
Fix logging (#5367)
srnagar Sep 13, 2019
d113267
Http Client README Updates (#5362)
g2vinay Sep 13, 2019
d2cf185
Regenerate custom vision prediction & training (#5369)
jianghaolu Sep 13, 2019
d822b94
Update README.md
joshfree Sep 13, 2019
1a008a6
Update README.md
joshfree Sep 13, 2019
bb4c837
Adding docs for dev env, build and tests for contributing
vhvb1989 Sep 13, 2019
3ad6c1f
Storage: regenerated package v2019_04_01 (#5377)
xseeseesee Sep 16, 2019
b8b555d
Clean-up integration tests (#5383)
conniey Sep 16, 2019
4bb9450
Rest proxy remove block from Schedulers (#5376)
sima-zhu Sep 16, 2019
fd0040f
Update SDK Tools Consumption (#5314)
chidozieononiwu Sep 17, 2019
0c5a81c
Network: generate 2019 07 01 (#5391)
ChenTanyi Sep 17, 2019
c7090d8
Add base search CI setup. (#5392)
mitchdenny Sep 17, 2019
01fa946
Renaming from 'Client Libraries' and 'Data Libraries' to 'Latest Clie…
JonathanGiles Sep 17, 2019
f64ec66
Minor cleanups for azure-core: (#5394)
JonathanGiles Sep 17, 2019
2b618c4
Enable check enforcer on the Java repo (#5400)
mitchdenny Sep 18, 2019
d2fb60e
Renaming HttpHeaders getter methods (#5407)
JonathanGiles Sep 18, 2019
5d58dd3
Update storage readme with identity p2 changes (#4945)
jianghaolu Sep 18, 2019
41472ed
Bump adal4j to 1.6.4 (#5263)
jianghaolu Sep 18, 2019
edfaa78
Return HttpClient interface rather than Netty impl (#5405)
JonathanGiles Sep 18, 2019
dac9d85
Add examples for configuring Netty and OkHttp clients with a proxy (#…
alzimmermsft Sep 18, 2019
5fa2a7f
Remove BearerTokenAuthenticationPolicy ctor overload (#5411)
jianghaolu Sep 18, 2019
0476f4c
Try to protect link error handler against errors on old links (#5373)
JamesBirdsall Sep 18, 2019
7ffae71
Test for ThrowFromClientLoggerCheck.java (#5317)
mssfang Sep 18, 2019
034847f
move to ClientSecretCredentialBuilder (#5403)
Sep 18, 2019
003c622
Update CODEOWNERS
joshfree Sep 18, 2019
75dd15f
Cleaning up the Configuration API (#5410)
JonathanGiles Sep 18, 2019
0735cbf
Storage Blob LeaseClient (#5380)
alzimmermsft Sep 18, 2019
8830e90
Split Event Hubs related connection and mapping from AMQPConnection (…
conniey Sep 18, 2019
3297582
Move location of CHECKENFORCER. (#5422)
mitchdenny Sep 19, 2019
cc0c71c
Removed redundnat enabled flag. (#5424)
mitchdenny Sep 19, 2019
d4edd9e
Net App: generate 2019 07 01 (#5425)
ChenTanyi Sep 19, 2019
dd43251
Added getName for each client (#5398)
sima-zhu Sep 19, 2019
71f22e2
Fix class renaming reference that was missed (#5438)
alzimmermsft Sep 19, 2019
9c9280a
Increment the current versions of com.microsoft.azure:azure-keyvault*…
JimSuplizio Sep 19, 2019
1ca8344
remove TODO labels since it is alreay implemented
vhvb1989 Sep 16, 2019
7339649
update released versions of azure-cognitiveservices-customvision-pred…
JimSuplizio Sep 19, 2019
b11eb91
Fix signing by removing artifact from publish list. (#5429)
mitchdenny Sep 20, 2019
9127b9e
Increment the current version of com.microsoft.azure:azure-storage-bl…
JimSuplizio Sep 20, 2019
5f35ba8
Refactor new client libraries to ship with full Java module support (…
JonathanGiles Sep 20, 2019
68b57f5
Enhance Code Samples for Common Credentials (#5413)
alzimmermsft Sep 20, 2019
e1183cd
Remove Event Hubs logic from ReactorSession. Fix NullPointerException…
conniey Sep 20, 2019
0dce83b
Update the cosmos current version to be ahead of the released version…
JimSuplizio Sep 20, 2019
b81c30a
Adds azure-sdk-tools to the repo list. (#5458)
mitchdenny Sep 21, 2019
903fa36
Fixed repository type. (#5459)
mitchdenny Sep 23, 2019
1ef090d
Adding blocksize arg to sync blockBlobClient
vhvb1989 Sep 17, 2019
27bfe5d
Adding annotation @ServiceClient to Storage Blob
vhvb1989 Sep 17, 2019
78401b1
Adding annotarion @ServiceClient to Storage-File
vhvb1989 Sep 17, 2019
b7ee401
Adding annotation @ServiceClient to Storage-Queue
vhvb1989 Sep 17, 2019
6c80488
Adding PageBlobClient code snippets
vhvb1989 Sep 18, 2019
778492b
adding code snippets for pageBlobAsyncClient
vhvb1989 Sep 18, 2019
6b8e163
Changes RequestRetryOptions Default Timeout (#5401)
alzimmermsft Sep 23, 2019
e76c75a
Update to cosmos parent POM to use the project.version (#5462)
JimSuplizio Sep 23, 2019
18b89f5
fix after impl renaming. Set new class name for ServiceClient
vhvb1989 Sep 23, 2019
63af760
Fix README documentation (#5461)
alzimmermsft Sep 23, 2019
84abfdf
Fix missing response fields using transforms (#5440)
alzimmermsft Sep 23, 2019
6161457
Upgrade to latest version of reactor core (#5454)
srnagar Sep 23, 2019
a8e93e2
Add groupid in. (#5366)
mitchdenny Sep 23, 2019
d68e009
Use Version Based Profile to Compile Groovy (#5469)
alzimmermsft Sep 24, 2019
1d192b6
Replace EventDataUtil and ManagementResponseMapper with MessageSerial…
conniey Sep 24, 2019
7ec9d65
Add module-info to appconfig (#5480)
srnagar Sep 24, 2019
b200de9
Remove VoidResponse (#5477)
samvaity Sep 24, 2019
414e5f7
Fixed the canonicalized headers string (#5491)
sima-zhu Sep 24, 2019
4c67a44
Updating Service Bus SDK readme (#5490)
Sep 24, 2019
7f8293b
Migration of azure-core-amqp implementation (#5346)
conniey Sep 25, 2019
f62cc68
Allow specifying tenant ID on user-based credentials (#5507)
jianghaolu Sep 25, 2019
0d4dc77
Fix UnsupportedOperationException when Block download and add test
vhvb1989 Sep 19, 2019
114b0a4
Fixed the setter and getter method (#5527)
sima-zhu Sep 25, 2019
b14012f
Fix an issue where the continuation token was not properly saved in t…
milismsft Sep 25, 2019
f3af192
Use primitive boolean (#5536)
alzimmermsft Sep 25, 2019
7271bb0
Rename the sas permission (#5532)
sima-zhu Sep 25, 2019
866a178
Removed AccessTierOptional and AccessTierRequired and Tag related mod…
alzimmermsft Sep 25, 2019
a913f0a
Convert credential scopes param to TokenRequest (#5492)
jianghaolu Sep 25, 2019
8c6f5af
Remove dot using ampersand (#5549)
mssfang Sep 25, 2019
3edaf1c
Fix parameter names (#5539)
conniey Sep 25, 2019
8094472
Peering: generate 2019 08 01 preview (#5554)
ChenTanyi Sep 26, 2019
52bd42b
Revert "Fix parameter names (#5539)" (#5555)
conniey Sep 26, 2019
f83cedb
Remove middle overloads in AppendBlob, fix create method name in Page…
alzimmermsft Sep 26, 2019
13dab83
[ServiceBus] replace all error and warn logs to info (#5395)
bainian12345 Sep 26, 2019
6ad4b27
Throw better exceptions in chained token credentials (#5487)
jianghaolu Sep 26, 2019
4373d02
File ADLS packages (#5550)
gapra-msft Sep 26, 2019
e510902
Fix file and queue failure tests after sas token changes. (#5535)
sima-zhu Sep 26, 2019
4c10870
Update Powershell to Vershin 6 (#5560)
chidozieononiwu Sep 26, 2019
6e0594d
Move Specialized BlobClients to Specialized Package (#5399)
alzimmermsft Sep 26, 2019
6e8a745
Upgrade to latest versions of reactor-core and reactor-netty (#5559)
srnagar Sep 26, 2019
b43d052
CosmosDb: up the minor build version (#5540)
milismsft Sep 26, 2019
e6cd2cd
Optimisation for RestProxy createResponse API. (#5435)
JonathanGiles Sep 26, 2019
1c42f15
Fix errors caused by upgrading to latest reactor versions (#5567)
srnagar Sep 27, 2019
1277779
Storage: update 2019 04 01 (#5568)
ChenTanyi Sep 27, 2019
c14c32e
Add Jim to codeowners and update link to docs (#5571)
weshaggard Sep 27, 2019
a72d864
Switching to caching based on reflection (#5576)
anuchandy Sep 27, 2019
c72fcf1
Changing SettingFields from Enum to ExpandableStringEnum (#5552)
mssfang Sep 27, 2019
cb5bfe9
Generate Internal Use Only Models in Implementation Package (#5564)
alzimmermsft Sep 27, 2019
edbe8e1
Use consistent naming for parameter URL (#5544)
samvaity Sep 27, 2019
88b7fbc
OpenCensus Tracing Plugin Package Cleanup (#5288)
alzimmermsft Sep 28, 2019
ba7da44
Fixing high CPU and memory leak in session pump (#5493)
yvgopal Sep 28, 2019
01160d5
Removing log4j properties file from resources (#5463)
yvgopal Sep 28, 2019
19c3a1f
Changing how peer is verfied in SSL, in the case of websockets via pr…
yvgopal Sep 28, 2019
4e8f073
change version from 3.1.1 to 3.1.0. There is no 3.1.0 exist. (#5581)
mssfang Sep 28, 2019
d621933
Cosmos: update build number versions (#5565)
milismsft Sep 29, 2019
ebb8d8c
Move implementation models to implementation.models for storage-file …
jianghaolu Sep 30, 2019
976c84b
Fixed small bug in test coverage pom.xml (#5579)
gapra-msft Sep 30, 2019
0c011dc
Move Storage queue internal model types to implementation (#5457)
jianghaolu Sep 30, 2019
0da7e1b
Opinionated client libraries (#5577)
srnagar Sep 30, 2019
2cda007
Core cryptography interfaces (#5538)
g2vinay Sep 30, 2019
597f066
downloadToFile Max overload method rename (#5547)
sima-zhu Sep 30, 2019
0dd99fe
Update return type for download API (#5613)
srnagar Oct 1, 2019
89569cb
Enables "EnableReceiverRuntimeMetric" feature from Track 1 (#5575)
conniey Oct 1, 2019
f95913b
Get URL with resource name and snapshot (#5421)
sima-zhu Oct 1, 2019
88115a5
Renamed setTier to setAccessTier (#5619)
alzimmermsft Oct 1, 2019
532dfa8
Added ParallelTransferOptions to buffered upload, upload from file an…
gapra-msft Oct 1, 2019
04b75fd
Switch back to powershell from pwsh for cosmos (#5633)
weshaggard Oct 1, 2019
8abbb78
Removes Metadata Class from Azure Blobs (#5627)
alzimmermsft Oct 1, 2019
ff5e7c5
Cosmos emulator change (#5647)
g2vinay Oct 2, 2019
d7cb5c9
return NPE from assertNotNull, update tests and javaDocs
vhvb1989 Sep 30, 2019
b235bce
Removed azure-core-management so that it does not get built when we r…
Oct 1, 2019
ae70d13
Fixed missing renaming APIs and bugs in convertStreamToByteBuffer (#5…
sima-zhu Oct 2, 2019
06e58a5
Update storage APIs based on review feedback (#5644)
srnagar Oct 2, 2019
8175824
update to prevent NPE on FileAsyncClient
vhvb1989 Oct 2, 2019
e300dd8
Change URL Getters to String in Storage (#5648)
samvaity Oct 2, 2019
8b211a5
preparing for preview.4 (#5642)
hemanttanwar Oct 2, 2019
bb8c643
move upload any methods from BlockBlobclient to BlobClient
vhvb1989 Oct 2, 2019
ea7018c
Update addSetting sync and async APIs (#5630)
mssfang Oct 3, 2019
b6ad328
OkHttp: consistent with netty - don't send null header values, suppor…
anuchandy Oct 3, 2019
cd72b30
Fixing intermittent unrecognized connection drops with idle timeout (…
yvgopal Oct 3, 2019
0af106e
Deleted updateSetting and updated setSetting (#5650)
mssfang Oct 3, 2019
72fc2fe
update deleteSetting APIs (#5645)
mssfang Oct 3, 2019
3a48c4f
Removed BadRequestException when FeedOptions.maxItemCount is -1 (#5618)
kushagraThapar Oct 3, 2019
fe03e64
update getSetting (#5649)
mssfang Oct 3, 2019
c31d1c9
add custom retry policy (#5669)
mssfang Oct 3, 2019
4ec31e3
Incorporated API review comments (#5672)
hemanttanwar Oct 3, 2019
74fcc08
Doc update tracing (#5632)
samvaity Oct 3, 2019
2d0cd47
API review changes. (#5681)
sima-zhu Oct 3, 2019
1b56126
Core crypto support in kv (#5659)
g2vinay Oct 4, 2019
be73f7e
Removed SASTokenCredential and SASTokenCredentialPolicy (#5680)
alzimmermsft Oct 4, 2019
16e1fc5
changing preview version (#5683)
hemanttanwar Oct 4, 2019
f346f0a
Initial change for changeLog and readme (#5658)
sima-zhu Oct 4, 2019
eebd2a1
Adds support for proxies in Event Hubs (#5621)
conniey Oct 4, 2019
c4b91be
Fixes possible null pointer deference spotbugs issue on Key Vault cli…
samvaity Oct 4, 2019
de86f3d
Move the datalake error models to implementation model (#5695)
sima-zhu Oct 4, 2019
1e5c000
Readme update for sasToken API in builder (#5697)
sima-zhu Oct 4, 2019
97b7af2
Remove SAS Generation Methods from Clients (#5617)
alzimmermsft Oct 4, 2019
3de3bbc
azure-core JavaDocs and code snippet clean-up (#5653)
conniey Oct 4, 2019
3c37147
Storage InputStream and OutputStream (#5455)
sima-zhu Oct 4, 2019
9010b95
Renaming classes and methods as per naming guidelines (#5691)
srnagar Oct 4, 2019
0e7867d
Update README and CHANGELOG for Event Hubs (#5700)
srnagar Oct 4, 2019
1facbc0
Add remove to HttpHeaders (#5704)
alzimmermsft Oct 4, 2019
7e3ba89
5638-storage-getaccountname (#5696)
hemanttanwar Oct 5, 2019
44750cd
Add Ink Recognition SDK (#5354)
minaltolpadi Oct 6, 2019
aaae079
Fix proxy creation and proxy tests (#5709)
conniey Oct 7, 2019
1fe9280
Implements setReadOnly and clearReadOnly (#5622)
mssfang Oct 7, 2019
5b80b66
Polling API update (#5091)
g2vinay Oct 7, 2019
1306f44
Remove configuration settings equals (#5546)
mssfang Oct 7, 2019
aa08e88
Add samples path for Blob Cryptography (#5712)
alzimmermsft Oct 7, 2019
b6619ce
Add AuthorizationCodeCredential (#5385)
jianghaolu Oct 7, 2019
49c6b72
Added support for implict root container (#5663)
rickle-msft Oct 7, 2019
c0c86cd
Adding HttpLogOptions for Logging improvements (#5688)
samvaity Oct 7, 2019
0e0ccf8
Add auth code docs in README (#5714)
jianghaolu Oct 7, 2019
eeeafab
Generate VMWare cloud simple package v2019_04_01. (#5717)
yaohaizh Oct 8, 2019
b37fbd6
Generated from e21fb709894f4793962a9e05e617cda7a9950fa5
Oct 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test for ThrowFromClientLoggerCheck.java (Azure#5317)
* remove java code isImple check but move to suppression and add only check for public class for external Dependency check

* test for ThrowFromClientLoggerCheck

* add skip check on static methods, static class, and construcoor
  • Loading branch information
mssfang authored Sep 18, 2019
commit 7ffae71ba85e2db513bfa746c8a639f0e65212d7
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.tools.checkstyle.checks;

import com.puppycrawl.tools.checkstyle.AbstractModuleTestSupport;
import com.puppycrawl.tools.checkstyle.Checker;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class ThrowFromClientLoggerCheckTest extends AbstractModuleTestSupport {

private static final String DIRRECT_THROW_ERROR_MESSAGE = "Directly throwing an exception is disallowed. Must "
+ "throw through 'ClientLogger' API, either of 'logger.logExceptionAsError' or 'logger.logExceptionAsWarning' "
+ "where 'logger' is type of ClientLogger from Azure Core package.";

private Checker checker;

@Before
public void prepare() throws Exception {
checker = createChecker(createModuleConfig(ThrowFromClientLoggerCheck.class));
}

@After
public void cleanup() {
checker.destroy();
}

@Override
protected String getPackageLocation() {
return "com/azure/tools/checkstyle/checks/ThrowFromClientLoggerCheck";
}

@Test
public void directThrowExceptionTestData() throws Exception {
String[] expected = {
expectedErrorMessage(12, 9, String.format(DIRRECT_THROW_ERROR_MESSAGE))
};
verify(checker, getPath("DirectThrowExceptionTestData.java"), expected);
}

private String expectedErrorMessage(int line, int column, String errorMessage) {
return String.format("%d:%d: %s", line, column, errorMessage);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import com.azure.core.util.logging.ClientLogger;

public class DirectThrowExceptionTestData {
private final ClientLogger logger = new ClientLogger(DirectThrowExceptionTestData.class);

// Skip check on constructor
DirectThrowExceptionTestData() {
throw new RuntimeException("Error Messages.");
}

public void directThrowException () {
throw new RuntimeException("Error Messages.");
}

public void correctThrowException() {
throw logger.logExceptionAsWarning(Exceptions.propagate(new IllegalStateException("Error Messages")));
}

public static skipCheckOnStaticMethod() {
throw new RuntimeException("Error Messages.");
}

// Skip check on static class
static class SkipCheckOnStaticClass {
public void directThrowException () {
throw new RuntimeException("Error Messages.");
}
}
}