Skip to content

Commit 74497e7

Browse files
authored
Merge pull request #1726 from finos/conformance-test-rename
Removed version numbers from conformance test names
2 parents ed5f2c8 + 0756b91 commit 74497e7

Some content is hidden

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

77 files changed

+493
-570
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2525
* Increased FDC3 Conformance Test WindowCloseWaitTime to 2000 (from 1000). ([#1586](https://github.com/finos/FDC3/issues/1586))
2626
* Enhanced method binding for FDC3 API objects to support destructuring. All public methods of `Channel`, `PrivateChannel`, and `IntentResolution` objects are now properly bound to their instances using `.bind(this)` in their constructors. ([#1645](https://github.com/finos/FDC3/issues/1645))
2727
* Changed fdc3-web-impl to not deliver broadcast messages back to the sending application, as recommended (SHOULD) in the Standard. [#1749](https://github.com/finos/FDC3/pull/1749)
28-
28+
* Removed version number prefix from conformance test names and implementation to simplify future maintenance. ([#1726](https://github.com/finos/FDC3/pull/1726))
2929

3030
### Deprecated
3131

toolbox/fdc3-conformance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A framework for testing whether desktop containers implement the [FDC3 standard]
55

66
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](https://fdc3.finos.org/docs/api/conformance/Conformance-Overview).
77

8-
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)
8+
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).
99

1010
## What Is It?
1111

toolbox/fdc3-conformance/eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import eslintConfigPrettier from 'eslint-config-prettier';
77
export default [
88
{ files: ['**/*.{js,mjs,cjs,ts}'] },
99
{ languageOptions: { globals: globals.browser } },
10+
{ parsetOptions: { tsconfigRootDir: 'src' } },
1011
pluginJs.configs.recommended,
1112
...tseslint.configs.recommended,
1213
eslintConfigPrettier,

toolbox/fdc3-conformance/instructions.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# How to Apply For FDC3 Certification for a Desktop Agent
22

3-
## 1. Run The Conformance Tests Yourself.
3+
## 1. Run The Conformance Tests Yourself
44

55
See [Readme](README.md) about how to do this.
6-
6+
77
## 2. Raise An Issue On This project
88

99
[Raise An Issue](https://github.com/finos/FDC3/issues) tagging it with `conformance`.
1010

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.
11+
In all likelihood, you will need to liaise with the maintainers of this project in order to get the conformance tests to work with your desktop agent.
1212

1313
This will also kick off the process of applying for the "FDC3 Certified" mark.
1414

@@ -48,5 +48,4 @@ On completion of the above steps you will be given your certificate via the [Cre
4848

4949
## 8. Re-Certification
5050

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-
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.

toolbox/fdc3-conformance/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"copy": "shx mkdir -p ./dist && shx cp -R static/* ./dist",
1313
"build": "webpack build && npm run copy",
1414
"serve": "npx http-server ./dist -p 3001 -c-1",
15-
"dev": "npm run build && npm run serve",
15+
"dev": "npm run clean && npm run build && npm run serve",
1616
"clean": "rimraf dist"
1717
},
1818
"dependencies": {

toolbox/fdc3-conformance/src/context-types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** same in 1.2 and 2.0 */
21
export interface CommonContext {
32
id?: {
43
[key: string]: string;

toolbox/fdc3-conformance/src/mock/v2.0/basic.ts renamed to toolbox/fdc3-conformance/src/mock/basic.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { closeWindowOnCompletion } from './mock-functions';
1+
import { closeWindowOnCompletion, sendContextToTests } from './mock-functions';
22
import { getAgent } from '@finos/fdc3';
3-
import { sendContextToTests } from './mock-functions';
4-
import { AppControlContext } from '../../context-types';
5-
import { ControlContextType, Intent } from '../../test/support/intent-support-2.0';
3+
import { AppControlContext } from '../context-types';
4+
import { ControlContextType, Intent } from '../test/support/intent-support';
65

76
getAgent().then(async fdc3 => {
87
await closeWindowOnCompletion(fdc3);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ChannelService2_0 } from './support/channel-support-2.0';
1+
import { ChannelServiceImpl } from './support/channel-support';
22
import { Context, getAgent } from '@finos/fdc3';
3-
import { Fdc3CommandExecutor } from '../channel-command';
3+
import { Fdc3CommandExecutor } from './channel-command';
44

55
getAgent().then(fdc3 => {
66
let firedOnce = false;
@@ -9,7 +9,7 @@ getAgent().then(fdc3 => {
99
if (firedOnce === false && context.type == 'channelsAppContext') {
1010
firedOnce = true;
1111
const commandExecutor = new Fdc3CommandExecutor();
12-
commandExecutor.executeCommands(context.commands, context.config, new ChannelService2_0(fdc3));
12+
commandExecutor.executeCommands(context.commands, context.config, new ChannelServiceImpl(fdc3));
1313
}
1414
});
1515
});

toolbox/fdc3-conformance/src/mock/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export const commands = {
88
retrieveTestAppChannel: 'retrieveTestAppChannel',
99
broadcastInstrumentContext: 'broadcastInstrumentContext',
1010
broadcastContactContext: 'broadcastContactContext',
11-
joinUserChannelOne: 'joinUserChannelOne', // v2.0
11+
joinUserChannelOne: 'joinUserChannelOne',
1212
};

toolbox/fdc3-conformance/src/mock/v2.0/general.ts renamed to toolbox/fdc3-conformance/src/mock/general.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { closeWindowOnCompletion } from './mock-functions';
1+
import { closeWindowOnCompletion, sendContextToTests } from './mock-functions';
22
import { getAgent, Context } from '@finos/fdc3';
3-
import { sendContextToTests } from '../v2.0/mock-functions';
4-
import { AppControlContext } from '../../context-types';
3+
import { AppControlContext } from '../context-types';
54

65
getAgent().then(async fdc3 => {
76
await closeWindowOnCompletion(fdc3);

0 commit comments

Comments
 (0)