-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from kuzzleio/2.0.0-rc26-proposal
- Loading branch information
Showing
81 changed files
with
2,012 additions
and
3,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ runs: | |
- name: Install deps | ||
shell: bash | ||
run: | | ||
npm ci | ||
npm run test:lint | ||
npm run docker npm ci | ||
npm run test:lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ doc/framework | |
frontmatter-errors.json | ||
|
||
.vscode | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Feature: Update device metadata | ||
|
||
Scenario: create and update and get a device with dedicated API | ||
When I successfully execute the action "device-manager/device":"create" with args: | ||
| engineId | "device-manager" | | ||
| body.model | "DummyTemp" | | ||
| body.reference | "TOUPDATE" | | ||
Then The document "device-manager":"devices":"DummyTemp-TOUPDATE" exists | ||
When I successfully execute the action "device-manager/device":"update" with args: | ||
| engineId | "device-manager" | | ||
| _id | "DummyTemp-TOUPDATE" | | ||
| body.metadata.hostname | "2004000010" | | ||
And I successfully execute the action "device-manager/device":"get" with args: | ||
| engineId | "device-manager" | | ||
| _id | "DummyTemp-TOUPDATE" | | ||
Then I should receive a result matching: | ||
| model | "DummyTemp" | | ||
| reference | "TOUPDATE" | | ||
| metadata.hostname | "2004000010" | | ||
|
||
|
||
Scenario: create and update and get a device with standard API | ||
When I successfully execute the action "device-manager/device":"create" with args: | ||
| engineId | "device-manager" | | ||
| body.model | "DummyTemp" | | ||
| body.reference | "TOUPDATE2" | | ||
Then The document "device-manager":"devices":"DummyTemp-TOUPDATE2" exists | ||
When I successfully execute the action "document":"update" with args: | ||
| index | "device-manager" | | ||
| collection | "devices" | | ||
| _id | "DummyTemp-TOUPDATE2" | | ||
| body.metadata | [ { "value": { "keyword": "2004000010" }, "key": "hostname" } ] | | ||
Then The document "device-manager":"devices":"DummyTemp-TOUPDATE2" content match: | ||
| metadata | [ { "value": { "keyword": "2004000010" }, "key": "hostname" } ] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Feature: Observer | ||
|
||
Scenario: observe an asset document | ||
When I successfully execute the action "device-manager/asset":"create" with args: | ||
| engineId | "engine-ayse" | | ||
| body.type | "truck" | | ||
| body.model | "M" | | ||
| body.reference | "asset_11" | | ||
And I observe document "engine-ayse":"assets":"truck-M-asset_11" | ||
Then I should receive a result matching: | ||
| _source.reference | "asset_11" | | ||
When I successfully execute the action "device-manager/asset":"update" with args: | ||
| engineId | "engine-ayse" | | ||
| _id | "truck-M-asset_11" | | ||
| body.reference | "asset_22" | | ||
Then I should have a realtime object matching: | ||
| _source.reference | "asset_22" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
features/fixtures/application/measures/Acceleration3dMeasure.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { Then } = require("cucumber"); | ||
const { Observer } = require("kuzzle-sdk"); | ||
|
||
Then( | ||
"I observe document {string}:{string}:{string}", | ||
async function (index, collection, document) { | ||
const observer = new Observer(this.sdk); | ||
const doc = await observer.get(index, collection, document, { | ||
test: "ttt", | ||
}); | ||
this.props.result = doc; | ||
this.props.realtime = doc; | ||
} | ||
); |
Oops, something went wrong.