-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature: webhooks #8674
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
Merged
feature: webhooks #8674
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
7bc15c3
api,server,ui: weebhoks feature
shwstppr 8442350
fix
shwstppr a69192c
fix
shwstppr af388a0
changes
shwstppr d17ded0
registry of message busses
DaanHoogland fa874ed
test bus
shwstppr 75a56f7
refactor
shwstppr 0c2a5c7
test
shwstppr d82863b
fix and refactor
shwstppr d273921
Merge branch 'message-buses' into add-feature-webhooks
shwstppr f74ffee
changes for webhook dispatch history
shwstppr a06b8f6
changes, initial ui
shwstppr d2c3d40
improvements
shwstppr 23621eb
changes for account webhook cleanup
shwstppr d4bd086
fix remaining event bus usage
shwstppr 3821fac
changes for testing webhook dispatch
shwstppr e8f4c1c
wip
shwstppr 291ead5
fix test
shwstppr 8a88be7
make element
shwstppr 1072909
missing
shwstppr 4952ac2
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr a1a10ec
buid fix
shwstppr cf2eb1f
fix lint
shwstppr e7911a8
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr 684f6d6
changes for project delete check
shwstppr 2d097dd
fix
shwstppr 02a1196
add collapse in create
shwstppr 30f4c48
ui fix and refactor for eventditributor publish
shwstppr a89a428
update org.json and add json validation
shwstppr 2debb85
schema fixes
shwstppr c7caf30
wordings
shwstppr 5c04e87
ui: improve progress button
shwstppr e4e5ff0
ui improvements
shwstppr 05f0590
remove unrelated change
shwstppr ac651e2
search and count
shwstppr 3e3ca82
add payloadurl in info
shwstppr 8dc662d
Merge branch 'main' into add-feature-webhooks
DaanHoogland 85059c5
positive progress
shwstppr 10a5e32
fix hmac key
shwstppr 5cde6e8
create webhook form fixes
shwstppr 819eb47
refactor, address feedback
shwstppr c70df5c
indentation
shwstppr 64b52bf
fix filters
shwstppr 07eae2f
remove test eventbus
shwstppr 85edf96
default scope be Local
shwstppr fcd161d
add lifecycle smoke test
shwstppr dd522ca
add test for webhook deliveries
shwstppr 7bc36ae
refactor
shwstppr 3a739d4
fix lint
shwstppr 27e683e
refactor - losgs and others
shwstppr 38f3adc
unit tests
shwstppr 31d85ef
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr 2a4226a
fix lint
shwstppr dc79745
build fix
shwstppr e40d7ac
smoke test fix, log refactor
shwstppr 398bc10
get bean from all components
shwstppr 980dfb5
ui: missing label
shwstppr 256f7a6
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr 52b4fc3
address review comments
shwstppr 4353a69
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr b054e0c
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr 6a3949a
add some more tests
shwstppr ca83c0a
lint
shwstppr 623496c
rename setting
shwstppr 9bd4f1e
upgrade: move 4.19.0->4.20.0 to 4.19.1->4.20.0
weizhouapache 426c120
fix test delivery layout
shwstppr ddadf22
fix webhook secret display
shwstppr 54ad344
add http to payloadurl when no scheme
shwstppr 9956375
allow removing secretkey for webhook
shwstppr 8c5f2a6
fix update sslverification
shwstppr 8a9039a
disallow same payload url for same account
shwstppr 5c7b33e
fix delivery with url w/o scheme
shwstppr 4f245b8
api: listApis should return params based on caller
shwstppr 2748743
Merge branch 'main' into add-feature-webhooks
shwstppr e26432b
wip changes
shwstppr ef00a8c
Update engine/schema/src/main/resources/META-INF/db/schema-41900to420…
shwstppr 8e1d53e
remove unique constraint for now
shwstppr 3c9cca9
fixes
shwstppr 7f54693
ui: add option to delete multiple deliveries
shwstppr 21e051e
add filter for deliveries, delete api start/endtime support
shwstppr 0497c5c
do not throw error when no deliveries removed
shwstppr 36d0cad
Merge branch 'main' into 4.20-fix-upgrade-path-from-4191
weizhouapache 67498fc
ui: fix deliveries table column sorting, time filter cancel
shwstppr 12baadc
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr a75e138
Merge remote-tracking branch 'wei/4.20-fix-upgrade-path-from-4191' in…
shwstppr c67bf4c
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr 757d113
remove isDebugEnabled wrapping
shwstppr 4e72012
Merge remote-tracking branch 'apache/main' into add-feature-webhooks
shwstppr b15bba5
merge fix
shwstppr 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
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
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
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
21 changes: 21 additions & 0 deletions
21
core/src/main/resources/META-INF/cloudstack/event/module.properties
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,21 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
|
|
||
| name=event | ||
| parent=core |
31 changes: 31 additions & 0 deletions
31
...n/resources/META-INF/cloudstack/event/spring-core-lifecycle-event-context-inheritable.xml
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,31 @@ | ||
| <!-- | ||
|
|
||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
|
|
||
| --> | ||
| <beans xmlns="http://www.springframework.org/schema/beans" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
| http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" | ||
| > | ||
| <bean class="org.apache.cloudstack.spring.lifecycle.registry.RegistryLifecycle"> | ||
| <property name="registry" ref="eventBusRegistry" /> | ||
| <property name="typeClass" value="org.apache.cloudstack.framework.events.EventBus" /> | ||
| </bean> | ||
|
|
||
| </beans> |
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
40 changes: 40 additions & 0 deletions
40
engine/components-api/src/test/java/com/cloud/network/NetworkStateListenerTest.java
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,40 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| package com.cloud.network; | ||
|
|
||
| import org.apache.cloudstack.framework.config.dao.ConfigurationDao; | ||
| import org.apache.cloudstack.framework.events.EventDistributor; | ||
| import org.junit.Assert; | ||
| import org.junit.Test; | ||
| import org.mockito.InjectMocks; | ||
| import org.mockito.Mockito; | ||
| import org.springframework.test.util.ReflectionTestUtils; | ||
|
|
||
| public class NetworkStateListenerTest { | ||
| @InjectMocks | ||
| NetworkStateListener networkStateListener = new NetworkStateListener(Mockito.mock(ConfigurationDao.class)); | ||
|
|
||
| @Test | ||
| public void testSetEventDistributor() { | ||
| EventDistributor eventDistributor = null; | ||
| networkStateListener.setEventDistributor(eventDistributor); | ||
| Assert.assertNull(ReflectionTestUtils.getField(networkStateListener, "eventDistributor")); | ||
| eventDistributor = Mockito.mock(EventDistributor.class); | ||
| networkStateListener.setEventDistributor(eventDistributor); | ||
| Assert.assertEquals(eventDistributor, ReflectionTestUtils.getField(networkStateListener, "eventDistributor")); | ||
| } | ||
| } |
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.