feat: Create CveServiceProducer with proxy startup service
1 unresolved thread
1 unresolved thread
Resolves #23 (closed)
Services set up to get around the issues encountered trying to stub beans using the @Startup
annotation
Merge request reports
Activity
Filter activity
46 47 @Inject 48 @RestClient 49 GithubCveAPI githubApi; 50 51 @Produces 52 @ApplicationScoped 53 @DefaultBean 54 public CveService defaultCveService(ManagedExecutor executor, ObjectMapper om, 55 GitlabCveLoaderConfig glCveLoaderConfig) { 56 return new DefaultCveService(gitlabApi, githubApi, executor, glCveLoaderConfig, ghToken, om); 57 } 58 59 @Produces 60 @ApplicationScoped 61 @IfBuildProfile("dev") We should also look to add another annotation to enable the stubbed service if a setting is true or missing. This can be done like this:
@IfBuildProperty(name = "eclipse.cve.stubbed", stringValue = "true", enableIfMissing = true)
. This way, we can enable and disable this service as needed in testing as wellchanged this line in version 3 of the diff
added 1 commit
- 46d18698 - feat: Add toggle config for stubbed CVE data
added 7 commits
-
46d18698...655249da - 4 commits from branch
eclipsefdn/it/api:main
- d6e16510 - feat: Create CveServiceProducer with proxy startup service
- 7c43a39e - fix: Fix injection for default cve service
- 2c162e2b - feat: Add toggle config for stubbed CVE data
Toggle commit list-
46d18698...655249da - 4 commits from branch
mentioned in commit 630f8487
Please register or sign in to reply