-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Refactor last fabric8 integration test package (1) #1824
Merged
ryanjbaxter
merged 43 commits into
spring-cloud:3.1.x
from
wind57:refactor-integration-tests-4
Jan 7, 2025
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
40252b6
started work
wind57 86d2e8a
dirty
wind57 0589167
dirty
wind57 840fc59
fix
wind57 71d0a5e
Merge branch 'change-delete-sequence' into refactor-integration-tests-1
wind57 fe07a73
dirty
wind57 6b3200f
first working
wind57 e4a88a9
cleanup
wind57 f88a581
cleanup
wind57 ed6565c
cleanup
wind57 096cf99
dirty
wind57 8824f14
more improvements
wind57 543c8a5
Merge branch 'refactor-integration-tests-1' into refactor-integration…
wind57 7dda032
more improvements
wind57 53db36f
Merge branch 'refactor-integration-tests-1' into refactor-integration…
wind57 d0d3b03
dirty
wind57 947cc43
cleanup
wind57 e38293f
Merge branch 'refactor-integration-tests-1' into refactor-integration…
wind57 b87b82b
dirty
wind57 566dfd6
dirty
wind57 fe9b3f5
dirty
wind57 b138b42
static import
wind57 ab24227
Merge branch 'refactor-integration-tests-1' into refactor-integration…
wind57 6d7e298
dirty
wind57 7b134e6
Merge branch '3.1.x' into refactor-integration-tests-1
wind57 260af17
Merge branch 'refactor-integration-tests-1' into refactor-integration…
wind57 c5d83f6
dirty
wind57 f1fa96e
dirty
wind57 b0dcb45
first ready
wind57 fed5559
started basic work
wind57 6668e41
dirty
wind57 3a0f108
dirty
wind57 62f4ccd
dirty
wind57 d8579ac
dirty
wind57 c201be4
dirty
wind57 f791927
dirty
wind57 f1e0774
dirty
wind57 b1c3c38
fix
wind57 fcb3952
merge 3.1.x
wind57 9b4dc97
fix
wind57 ef10f74
fix
wind57 9dff134
fix
wind57 a5564fb
fix
wind57 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
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 |
---|---|---|
|
@@ -14,4 +14,3 @@ spring: | |
- /tmp/application.properties | ||
config: | ||
import: "kubernetes:" | ||
|
4 changes: 0 additions & 4 deletions
4
...pring-cloud-kubernetes-fabric8-client-reload/src/main/resources/application-no-mount.yaml
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
logging: | ||
level: | ||
root: DEBUG | ||
|
||
spring: | ||
application: | ||
name: poll-reload | ||
|
10 changes: 4 additions & 6 deletions
10
...sts/spring-cloud-kubernetes-fabric8-client-reload/src/main/resources/application-one.yaml
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
logging: | ||
level: | ||
root: DEBUG | ||
|
||
spring: | ||
application: | ||
name: event-reload | ||
cloud: | ||
kubernetes: | ||
secrets: | ||
enabled: false | ||
reload: | ||
enabled: true | ||
strategy: shutdown | ||
strategy: refresh | ||
mode: event | ||
namespaces: | ||
- left | ||
- right | ||
monitoring-config-maps: true |
9 changes: 4 additions & 5 deletions
9
...sts/spring-cloud-kubernetes-fabric8-client-reload/src/main/resources/application-two.yaml
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
logging: | ||
level: | ||
root: DEBUG | ||
|
||
spring: | ||
application: | ||
name: event-reload | ||
cloud: | ||
kubernetes: | ||
reload: | ||
enabled: true | ||
strategy: shutdown | ||
strategy: refresh | ||
mode: event | ||
namespaces: | ||
- right | ||
monitoring-config-maps: true | ||
|
||
main: | ||
cloud-platform: kubernetes |
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
12 changes: 6 additions & 6 deletions
12
...tests/spring-cloud-kubernetes-fabric8-client-reload/src/main/resources/bootstrap-one.yaml
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
logging: | ||
level: | ||
root: DEBUG | ||
|
||
spring: | ||
cloud: | ||
kubernetes: | ||
config: | ||
sources: | ||
- namespace: left | ||
name: left-configmap | ||
- namespace: right | ||
name: right-configmap | ||
|
||
# otherwise on context refresh we lose this property | ||
# and test fails, since beans are not wired. | ||
main: | ||
cloud-platform: kubernetes | ||
|
12 changes: 6 additions & 6 deletions
12
...sts/spring-cloud-kubernetes-fabric8-client-reload/src/main/resources/bootstrap-three.yaml
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
logging: | ||
level: | ||
root: DEBUG | ||
|
||
spring: | ||
cloud: | ||
kubernetes: | ||
config: | ||
sources: | ||
- namespace: left | ||
name: left-configmap | ||
- namespace: right | ||
name: right-configmap | ||
- namespace: right | ||
name: right-configmap-with-label | ||
|
||
|
||
# otherwise on context refresh we lose this property | ||
# and test fails, since beans are not wired. | ||
main: | ||
cloud-platform: kubernetes |
11 changes: 7 additions & 4 deletions
11
...tests/spring-cloud-kubernetes-fabric8-client-reload/src/main/resources/bootstrap-two.yaml
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
logging: | ||
level: | ||
root: DEBUG | ||
|
||
spring: | ||
cloud: | ||
kubernetes: | ||
secrets: | ||
enabled: false | ||
config: | ||
sources: | ||
- namespace: left | ||
name: left-configmap | ||
- namespace: right | ||
name: right-configmap | ||
|
||
# otherwise on context refresh we lose this property | ||
# and test fails, since beans are not wired. | ||
main: | ||
cloud-platform: kubernetes |
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.
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.
If you didn't change the tests I am curious as to why we need to add this now?
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.
good eye! as usual :) so this has eaten the most of the time when I refactored this one. Initially, this property exists in the
@TestPropertySource
, but after I refresh, this one is "lost". In the previous test we used to shutdown and now we refresh (shutdown would not work with this kind of refactor). Since it is lost, the test would fail, thus I need it "again", after the refresh is called. I hope it makes sense