Skip to content

Commit 57d884f

Browse files
authored
Merge pull request #1576 from finos/fdc3-new-conformance
Conformance 2.2: Port to Monorepo
2 parents 8dfe39a + 908aef8 commit 57d884f

130 files changed

Lines changed: 12206 additions & 788 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1414

1515
* Added details of and procedures for resolving fully-qualified appIds and unqualified appIds in the API and Bridging Parts of the Standard. ([#1523](https://github.com/finos/FDC3/pull/1523))
1616

17+
- Ported FDC3 Conformance Project as-is into the FDC3 Monorepo, just including minimal fixes for typescript compilation. ([#1576](https://github.com/finos/FDC3/pull/1576))
18+
1719
### Changed
1820

1921
### Deprecated

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"packages/fdc3-commonjs",
3030
"toolbox/fdc3-for-web/reference-ui",
3131
"toolbox/fdc3-for-web/demo",
32-
"toolbox/fdc3-workbench"
32+
"toolbox/fdc3-workbench",
33+
"toolbox/fdc3-conformnance"
3334
],
3435
"scripts": {
3536
"clean": "npm run clean --workspaces --if-present",
@@ -39,7 +40,7 @@
3940
"report": "nyc report --reporter json-summary --report-dir nyc-coverage-report --exclude-after-remap false --temp-dir coverage",
4041
"lint": "npm run lint --workspaces --if-present",
4142
"syncpack": "npm exec syncpack fix-mismatches --types 'local'",
42-
"dev": "concurrently \"cd toolbox/fdc3-workbench && npm run dev\" \"cd toolbox/fdc3-for-web/reference-ui && npm run dev\" \"cd toolbox/fdc3-for-web/demo && npm run dev\"",
43+
"dev": "concurrently \"cd toolbox/fdc3-conformance && npm run dev\" \"cd toolbox/fdc3-workbench && npm run dev\" \"cd toolbox/fdc3-for-web/reference-ui && npm run dev\" \"cd toolbox/fdc3-for-web/demo && npm run dev\"",
4344
"prepare": "husky"
4445
},
4546
"prettier": {
@@ -65,4 +66,4 @@
6566
"lint-staged": {
6667
"**/*": "prettier --write --ignore-unknown"
6768
}
68-
}
69+
}

toolbox/fdc3-conformance/README.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<img align="right" title="FDC3 Conformance Framework" width="200px" src="https://landscape.finos.org/logos/fdc3-conformance-framework.svg">
2+
3+
# FDC3 Conformance Framework
4+
5+
A framework for testing whether desktop containers implement the [FDC3 standard](https://fdc3.finos.org/).
6+
7+
The tests implemented for each FDC3 version are based on the FDC3 Conformance tests specifications defined by the FDC3 maintainers and hosted on the [FDC3 website](../../website/docs/api/conformance/Overview.md).
8+
9+
Tests in this module currently implement versions 2.0 and 2.2 of the FDC3 Standard. For old 1.2 conformance testing, please see the [archived FDC3 Conformance project](https://github.com/finos/FDC3-Conformance-Framework)
10+
11+
## What Is It?
12+
13+
- There are many vendors implementing Desktop Agents for the FDC3 standard.
14+
- Developers building apps interoperating with the FDC3 standard want to be sure that their apps will work with every Desktop Agent.
15+
- This suite of conformance tests allows for programmatic verification of an FDC3 Desktop Agent implementation.
16+
17+
## Why Is This Important?
18+
19+
✔️ **Multiple Platforms**
20+
21+
It can be annoying for users to find that features in their apps that they rely on don't work when changing between Desktop Agents. Hopefully these conformance tests will add security around that.
22+
23+
✔️ **Marketing**
24+
25+
FINOS has created _badges_ to indicate conformance with the FDC3 standard. By passing the conformance tests and joining the conformance program, firms are able to use those badges in their own marketing materials.
26+
27+
✔️ **Backwards Compatibility**
28+
29+
There are multiple versions of the FDC3 standard. A Desktop Agent could host apps written in _any one of these versions_. For that reason, it's important that Desktop Agents are tested to make sure that they keep on supporting apps written against older versions of FDC3.
30+
31+
## How Does It Work?
32+
33+
There are two main parts to conformance:
34+
35+
- Running the tests _locally_
36+
- Joining the Conformance Program
37+
38+
### Running The Conformance Tests
39+
40+
You can either run the hosted conformance tests listed in the FINOS App Directory, or run them on your local machine (useful if you are making changes). Instructions for doing either of those things are here:
41+
42+
#### Running From fdc3.finos.org
43+
44+
You can run the FDC3 conformance tests straight from the FDC3 website. If you have a Desktop Agent supporting the [AppD v2 standard](https://fdc3.finos.org/docs/app-directory/spec), you can run the tests from the following URL:
45+
46+
- [https://fdc3.finos.org/toolbox/fdc3-conformance/directory.v2.json](https://fdc3.finos.org/toolbox/fdc3-conformance/directory.v2.jso)
47+
48+
#### Local Installation
49+
50+
Alternatively, you can run the conformance suite from your local machine by following these steps:
51+
52+
1. **Check Out This Repo**
53+
54+
The FDC3 project is a monorepo and the `toolbox/fdc3-conformance` folder contains the conformance tests.
55+
56+
2. **Install Dependencies**
57+
58+
In order to get started, install all the dependencies with:
59+
60+
```sh
61+
npm install
62+
```
63+
64+
3. **Run The Apps Locally**
65+
66+
To run the conformance suite (and all of the other FDC3 project components such as the workbench and demo desktop agent) locally on port 3001:
67+
68+
```sh
69+
npm run dev
70+
```
71+
72+
4. **Set Up Your Desktop Agent**
73+
74+
You will need to set up your desktop agent so that it has an _App Directory containing all the conformance apps_.
75+
This step is vendor-dependent, but examples of `AppD` records can be found in the `directory` folder.
76+
77+
### Running The Tests
78+
79+
Once you have configured your desktop agent correctly, open the conformance app and select the tests you wish to run:
80+
81+
<img src="static/selecting.png" alt="Selecting Tests" width="400px" />
82+
83+
The tests run and produce an output in the window. Failure are shown with a stack trace in red:
84+
85+
<img src="static/failing.png" alt="Running Tests" width="400px" />
86+
87+
Successful runs look something like this:
88+
89+
<img src="static/running.png" alt="Success" width="400px" />
90+
91+
### Joining The Conformance Program
92+
93+
If you've had a clean run of all the tests locally, why not join the conformance program?
94+
95+
[Instructions to join the Certified FDC3 Desktop Agent Conformance Program](instructions.md)
96+
97+
Once you have followed these steps, you will be allowed to display the FDC3 Compliance Badges within your marketing literature.
98+
99+
<img src="terms-conditions/graphics/1.2/2022_FDC3_CompliantBadge_1.2.png" alt="Conformance with FDC3 1.2" width="100px"><img src="terms-conditions/graphics/2.0/2022_FDC3_CompliantBadge_2.0.png" alt="Conformance with FDC3 2.0" width="100px">
100+
101+
### Which Desktop Agents Are Conformant?
102+
103+
We publish the details of conformant desktop agents on the [FDC3 Home Page](https://fdc3.finos.org#conformance). Please check there to find out who FINOS has certified!
104+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import eslintConfigPrettier from 'eslint-config-prettier';
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
9+
{ languageOptions: { globals: globals.browser } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
eslintConfigPrettier,
13+
];
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# How to Apply For FDC3 Certification for a Desktop Agent
2+
3+
## 1. Run The Conformance Tests Yourself.
4+
5+
See [Readme](README.md) about how to do this.
6+
7+
## 2. Raise An Issue On This project
8+
9+
[Raise An Issue](https://github.com/finos/FDC3-Conformance-Framework/issues) on the FDC3 Conformance Project.
10+
11+
In all likelihood, you will need to liase with the maintainers of this project in order to get the conformance tests to work with your desktop agent.
12+
13+
This will also kick off the process of applying for the "FDC3 Certified" mark.
14+
15+
- Provide details in the issue about how you configured and ran the conformance tests in step 1 above.
16+
- Provide the test results (number of passes / fails, details of failed tests, versions used) in the issue.
17+
18+
## 3. Replication
19+
20+
Maintainers of the FDC3 Conformance Framework will aim to replicate your test results. You must work with them to provide the correct version(s) of your software and resolve any issues around licensing that may arise in order that they can proceed.
21+
22+
## 4. Fees
23+
24+
Fees for certification are:
25+
26+
|FINOS Membership Level |Fee per Unit* |
27+
|------------------------------|------------------|
28+
|Platinum|Free (unlimited units) |
29+
|Gold |Free (up to 3 units each membership year) |
30+
|Silver |Free (first unit each membership year)|
31+
|Additional Units / Non Members |$20,000 per unit|
32+
33+
These fees are to cover work done by the FINOS for the formal certification process and badge issuance.
34+
35+
*A _unit_ here refers to a particular vendor software version and FDC3 version _combination_, as described in the [Terms and Conditions](terms-conditions/FDC3-Certified-Terms.md)
36+
37+
## 5. Failed Tests
38+
39+
If your desktop agent fails any of the conformance tests, the maintainers will inform you via the issue you opened in order that you can make fixes to your software and retry the process.
40+
41+
## 6. Terms
42+
43+
Once your desktop agent has passed the complete suite of tests, you will be required to accept the [Terms and Conditions](terms-conditions/FDC3-Certified-Terms.md) via the completion of the [Participation Form](terms-conditions/participation-form.md).
44+
45+
## 7. Badge
46+
47+
On completion of the above steps you will be given your certificate via the [Credly](https://cred.ly) platform for use in your own materials / publicity.
48+
49+
## 8. Re-Certification
50+
51+
Certification only applies to a single version of your software product. FINOS reserves the right to allow certification to carry over at no additional cost for minor/maintenance version changes of your desktop agent if no backward incompatible changes are introduced in those versions.
52+

0 commit comments

Comments
 (0)