Skip to content

Commit 1298bd5

Browse files
authored
Merge pull request #252 from adlnet/LRS-2.0
Initial xAPI 2.0 Compatibility + Test Directory
2 parents 14778f9 + d17a26a commit 1298bd5

204 files changed

Lines changed: 39407 additions & 1943 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.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ build/Release
2323
# Deployed apps should consider commenting this line out:
2424
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
2525
node_modules
26+
package-lock.json
2627

2728
.idea
2829

@@ -32,3 +33,4 @@ node_modules
3233
/local/super-request/.npmignore
3334
/local/supertest/.gitignore
3435
/package-lock.json
36+
/scratch

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ LRS Conformance Test Suite
55

66
This is a NodeJS project that tests the 'MUST' requirements of the [xAPI Spec](https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-About.md#experience-api) and is based on the ADL [testing requirements](https://adl.gitbooks.io/xapi-lrs-conformance-requirements/content/) repository. This is actively being developed and new tests will be periodically added based on the testing requirements. Currently, this test suite only supports basic authentication. This test suite should also not run against a production LRS endpoint because the data is persisted and never voided.
77

8+
### xAPI 2.0 Update
9+
10+
xAPI 2.0 changed a number of requirements for the LRS from previous versions; most of these are additions supporting new features, while others have been removed. The details of the changes may be seen in the updated xAPI Spec.
11+
12+
The following are the major changes that warranted the creation of additional tests in the conformance suite:
13+
- Full support and validation for context agents and context groups
14+
- 2.0.x is a valid set of xAPI versions
15+
- Timestamps may be represented in the RFC 3339 format (changed from strict ISO 8601)
16+
- If a timestamp is not formatted to UTC, the LRS will convert the timestamp instead of rejecting the statement
17+
- Alternate Request Syntax is no longer supported and therefore not tested
18+
- LRS responses now include `Last-Modified` headers
19+
820
### Installation
921

1022
Dependency
@@ -40,6 +52,7 @@ $ node bin/console_runner.js --help
4052
-l, --authorization_path [string] Path to OAuth user authorization endpoint (relative to endpoint)
4153
-g, --grep [string] Only run tests that match the given pattern
4254
-b, --bail Abort the battery if one test fails
55+
-x, --xapiVersion [string] 🌟 New: Version of the xAPI spec to test against
4356
-d, --directory [value] Specific directories of tests (as a comma seperated list with no spaces)
4457
-z, --errors Results log of failing tests only
4558
```

0 commit comments

Comments
 (0)