-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Enable properties which supported in sdk #22676
Merged
yiliuTo
merged 43 commits into
Azure:main
from
zhichengliu12581:enable-properties-which-supported-in-sdk
Aug 4, 2021
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ffb59f4
Support the parameters that are allowed to be configured in the SDK
zhichengliu12581 00356c6
nothing changed, just remove unused import
zhichengliu12581 f3071b1
support configuration in topic
zhichengliu12581 7f982bc
try to fix pipeline error
zhichengliu12581 ca7d039
merge master
zhichengliu12581 f876d85
remove useless bean
zhichengliu12581 48c8ccc
add properties in consumer Properties
zhichengliu12581 922759a
remove unused import
zhichengliu12581 c0f6557
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
zhichengliu12581 5939585
add default client options
zhichengliu12581 2380f9f
revert useless bean as discussed
zhichengliu12581 65d8abf
add test for retry-options properties
zhichengliu12581 c276787
add test for serviceBusReceiveMode properties
zhichengliu12581 4245f00
nothing changed, just remove Todo
zhichengliu12581 4ca6492
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
zhichengliu12581 ec9736b
nothing changed just remove unused import and format code
zhichengliu12581 54e8474
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
zhichengliu12581 379c430
update CHANGELOG.md and README.md
zhichengliu12581 dc87561
remove unused import
zhichengliu12581 0c45193
merge main
zhichengliu12581 5efa9aa
add test in queue&topic autoconfigurtion
zhichengliu12581 77e91fa
update README.md
zhichengliu12581 006d4a7
enable tests
zhichengliu12581 b158580
Deprecated concurrency and use maxConcurrentCalls and maxConcurrentSe…
zhichengliu12581 9a2d7e5
update CHANGELOG.md and README.md
zhichengliu12581 295e448
enable properties to set whether enableAutoComplete
zhichengliu12581 8313691
use DeprecatedConfigurationProperty
zhichengliu12581 a3d52f9
use DeprecatedConfigurationProperty and update docs
zhichengliu12581 f84bbe7
fix error in name
zhichengliu12581 de0880e
try to fix pipeline error
cbec683
update by comments
zhichengliu12581 4c8688d
merge main
zhichengliu12581 d32503d
merge main
zhichengliu12581 916160a
rename functions
zhichengliu12581 58245ed
make maxConcurrentCalls and maxConcurrentSessions can work normally w…
zhichengliu12581 fd05168
remove useless it
zhichengliu12581 9bc8c6d
make properties as pojo
zhichengliu12581 9b223dc
merge main
zhichengliu12581 c134b56
fix README.md error
zhichengliu12581 c8ccb03
fix pipeline error
zhichengliu12581 6c86b9a
add test for properties
zhichengliu12581 e91660b
Update ServiceBusQueueSessionBinderConfigTest.java
zhichengliu12581 efdc850
fix pipeline error
zhichengliu12581 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 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 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 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 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 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
package com.azure.spring.cloud.autoconfigure.servicebus; | ||
|
||
import com.azure.core.amqp.AmqpRetryMode; | ||
import com.azure.core.amqp.AmqpTransportType; | ||
import com.azure.messaging.servicebus.ServiceBusReceivedMessage; | ||
import com.azure.resourcemanager.AzureResourceManager; | ||
|
@@ -92,9 +93,25 @@ public void testConnectionStringProvided() { | |
@Test | ||
public void testTransportTypeWithAmqpWebSockets() { | ||
this.contextRunner.withPropertyValues(SERVICE_BUS_PROPERTY_PREFIX + "transport-type=AMQP_WEB_SOCKETS") | ||
.run(context -> { | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getTransportType()).isEqualTo(AmqpTransportType.AMQP_WEB_SOCKETS); | ||
}); | ||
.run(context -> { | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getTransportType()).isEqualTo(AmqpTransportType.AMQP_WEB_SOCKETS); | ||
}); | ||
} | ||
|
||
@Test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add UTs in the queue&topic autoconfigurtion to see if the client factory beans are created as the way the properties are configured? |
||
public void testTransportTypeWithRetryOptions() { | ||
this.contextRunner.withPropertyValues(SERVICE_BUS_PROPERTY_PREFIX + "retry-options.maxRetries=5", | ||
SERVICE_BUS_PROPERTY_PREFIX + "retry-options.delay=100S", | ||
SERVICE_BUS_PROPERTY_PREFIX + "retry-options.maxDelay=200S", | ||
SERVICE_BUS_PROPERTY_PREFIX + "retry-options.tryTimeout=300S", | ||
SERVICE_BUS_PROPERTY_PREFIX + "retry-options.Mode=FIXED") | ||
.run(context -> { | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getRetryOptions().getMaxRetries()).isEqualTo(5); | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getRetryOptions().getDelay().getSeconds()).isEqualTo(100L); | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getRetryOptions().getMaxDelay().getSeconds()).isEqualTo(200L); | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getRetryOptions().getTryTimeout().getSeconds()).isEqualTo(300L); | ||
assertThat(context.getBean(AzureServiceBusProperties.class).getRetryOptions().getMode()).isEqualTo(AmqpRetryMode.FIXED); | ||
}); | ||
} | ||
|
||
@Test | ||
|
This file contains 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this default value for servicebus sdk client? If so, seems we don't set it here