Skip to content
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

564282 API revision: question extensibility #243

Merged
merged 10 commits into from
Jun 16, 2020
Merged

564282 API revision: question extensibility #243

merged 10 commits into from
Jun 16, 2020

Conversation

eparovyshnaya
Copy link
Contributor

The decision has been taken to close extensibility for critical access cycle parts and 'seal' final services assembly for security aims. Thus, there:

  • registry implementation is altered to have final readonly registry class
  • extensibility of requirement resolution services registry is closed: readonly registry is used
  • both requirement resolution services we have now (BundleRequirements and ComponentRequirements) are detached from OSGi to be accessible for sealing
  • contract tests are designed for Framework and resuirement resolution service (new lic.api.tests bundle)
  • seal.demo bundle is added to supply final assembly of passage runtime (packed instance of Framework interface) for out-of-the-box facilities demontration purposes
  • seal.demo.tests bundle contains both contract and content tests for current DemoFramework
  • demo feature is appended

 The decision has been taken to close extensibility for critical access
cycle parts and 'seal' final services assembly for security aims. Thus:

  - `registry` implementation altered to have final readonly registry
class
  - extensibility of requirement resolution services registry is closed:
readonly registry is used
  - both requirement resolution services we have now(BundleRequirements
and ComponentRequirements) are detached from OSGi to be accessible for
sealing.
  - contract tests are designed for `Framework` and resuirement
resolution service (new `lic.api.tests` bundle)
  - 'seal.demo' bundle is added to supply final assembly of passage
runtime (packed instance of `Framework` interface) for out-of-the-box
facilities demontration purposes
  - `seal.demo.tests` bundle contains both contract and implementational
tests for current `DemoFramework`
  - `demo` feature is appended



Signed-off-by: elena.parovyshnaya <[email protected]>
 - remove outdated OSGi-component life cycle methods

Signed-off-by: elena.parovyshnaya <[email protected]>
@eparovyshnaya eparovyshnaya requested a review from ruspl-afed June 15, 2020 10:12
 - add single workable test among all the abstract ones to 'api.tests'
bundle to make sure-fire go

Signed-off-by: elena.parovyshnaya <[email protected]>
 - document framework contract test idea

Signed-off-by: elena.parovyshnaya <[email protected]>
@eparovyshnaya eparovyshnaya added the pr::wip PR is not ready for review, work is still in progress label Jun 15, 2020
@eparovyshnaya eparovyshnaya changed the title 564282 564282 API revision: question extensibility Jun 15, 2020
 - finalize fields ex- OSGi components

Signed-off-by: elena.parovyshnaya <[email protected]>
 - explain, generalize and extend api contract tests
 - reimplement existing requirement resolution services tests basing on
contract assumptions checking
  - test requirement resolution services registry, supplied by demo
framework (make sure it follows the contract)

Signed-off-by: elena.parovyshnaya <[email protected]>
Fix code review findings:
 - add license headers
 - specify exact version of dependencies

Signed-off-by: elena.parovyshnaya <[email protected]>
Fix existing requirement resolution services tests

Signed-off-by: elena.parovyshnaya <[email protected]>
@codecov
Copy link

codecov bot commented Jun 15, 2020

Codecov Report

Merging #243 into master will decrease coverage by 0.04%.
The diff coverage is 7.27%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master    #243      +/-   ##
===========================================
- Coverage      9.21%   9.17%   -0.05%     
- Complexity        0       2       +2     
===========================================
  Files           539     549      +10     
  Lines         14626   14741     +115     
  Branches       1157    1162       +5     
===========================================
+ Hits           1348    1352       +4     
- Misses        13242   13352     +110     
- Partials         36      37       +1     
Impacted Files Coverage Δ Complexity Δ
...ic/internal/base/registry/BaseRuntimeRegistry.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...e/passage/lic/internal/equinox/EquinoxPassage.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ernal/equinox/requirements/BundleRequirements.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...al/equinox/requirements/ComponentRequirements.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...e/passage/lic/api/tests/FrameworkContractTest.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...sts/FrameworkRequirementResolutionServiceTest.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../passage/lic/api/tests/ReadOnlyCollectionTest.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ic/api/tests/ResolvedRequirementsContractTest.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...lipse/passage/lic/api/tests/fakes/FakeFeature.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...e/passage/lic/api/tests/fakes/FakeRequirement.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26a442b...ff6e0df. Read the comment docs.

@eparovyshnaya eparovyshnaya requested a review from ruspl-afed June 15, 2020 12:55
@eparovyshnaya eparovyshnaya removed the pr::wip PR is not ready for review, work is still in progress label Jun 15, 2020
Hide 'internal' package

Signed-off-by: elena.parovyshnaya <[email protected]>
@eparovyshnaya eparovyshnaya merged commit beefbbf into master Jun 16, 2020
@eparovyshnaya eparovyshnaya deleted the 564282 branch June 18, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants