ATLAS-5207: Atlas webapp module to support rest-notification endpoint#622
ATLAS-5207: Atlas webapp module to support rest-notification endpoint#622UmeshPatil-1 wants to merge 24 commits into
Conversation
… rest-notification-webapp in parent pom, replacing the old private SNAPSHOT to map with parent,updated from jersy2->jersy1, Removed Servlet 4.0-only methods that are not on ServletContext in Servlet 3.1 (they were breaking @OverRide) etc
…sses from webapp and rest-notification webapp, updated imports to use server-common module,updated paren pom and xml wiring's etc.
….ServletException and in rest-notification webapp NullServletContext method does not override or implement a method from a supertype, these was because javax.servlet-api 3.1 and there is no support for methods which are using servlet-4.0.
…app in server-common module.
…ebapp and rest-notification-webapp and Updating method visibility to resolve compile time error for UserDaoTest (testMergePasswordAndSalt_EmptySalt) method.
…h webapp and rest-notification webapp.
… both webapp and rest-notification webapp.
…both webapp and rest-notification webapp.
…both webapp and rest-notification webapp.
…rver-common module.
…common module for both webapp and rest-notification webapp.
…d redundant lines.
…rn; align WebappAdminAuditHookTest with long resultCount
…ile-gate test security, split filter beans, Curator only if HA.
…nd rest-notification module.
|
|
||
| ####### Atlas REST Notification ########### | ||
|
|
||
| atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest |
There was a problem hiding this comment.
Please comment the rest-notification properties.
|
|
||
| ####### Atlas REST Notification ########### | ||
|
|
||
| atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest |
There was a problem hiding this comment.
| * 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 | ||
| * <p> |
There was a problem hiding this comment.
Class should be RestNotificationHighAvailabilityImpl please check the internal branch class name
| import org.springframework.context.annotation.Configuration; | ||
|
|
||
| @Configuration | ||
| public class AtlasSecurityStateProviderConfig { |
There was a problem hiding this comment.
Check the internal branch class name AtlasServiceStateProviderConfig
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> |
There was a problem hiding this comment.
Please check the build plugins with the internal branch rest-notification pom.xml file.
| * Webapp implementation of {@link HighAvailabilitySupport} using {@link HAConfiguration}. | ||
| */ | ||
| @Component | ||
| public class WebappHighAvailabilitySupport implements HighAvailabilitySupport { |
There was a problem hiding this comment.
Change the name HighAvailabilityImpl, please check the internal code
| * and do not rely on {@link org.apache.atlas.RequestContext} during bootstrap. | ||
| */ | ||
| @Component | ||
| public class WebappAdminAuditHook implements ServiceMetricsHook { |
There was a problem hiding this comment.
Please check the internal branch class name ServiceStateChangeAuditHandler and it code
| * Bridges {@link ServiceMetricsHook} to {@link AtlasMetricsUtil} in the main webapp. | ||
| */ | ||
| @Component | ||
| public class WebappServiceMetricsHook implements ServiceMetricsHook { |
There was a problem hiding this comment.
check the internal code ServiceStateChangeMetricHandler
| import org.springframework.context.annotation.Configuration; | ||
|
|
||
| @Configuration | ||
| public class AtlasSecurityStateProviderConfig { |
There was a problem hiding this comment.
Class is different in internal branch AtlasServiceStateProviderConfig
| hook = new WebappAdminAuditHook(auditService); | ||
| } | ||
|
|
||
| @Test |
There was a problem hiding this comment.
Check this test will fail.
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix. Create an issue in ASF JIRA before opening a pull request and
set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. ATLAS-XXXX: Fix a typo in YYY))
How was this patch tested?
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)