Skip to content

Commit

Permalink
chore: rename sdk file so it is triggered first
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 11, 2024
1 parent d2122ce commit e008d87
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions features/Sdk.feature → features/A_Sdk.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ Feature: SDK commands
Then The document "chuon-chuon-kim" content match:
| other-name | "my" |

# Scenario: Impersonate an user
# When I run the command "sdk:query" with:
# | arg | auth:getCurrentUser | |
# | flag | --as | gordon |
# Then I should match stdout with:
# | "_id": "gordon" |

@mappings
Scenario: Execute code in the SDK context
Given an existing collection "nyc-open-data":"yellow-taxi"
Expand All @@ -34,3 +27,11 @@ Feature: SDK commands
| arg | const index: string = "nyc-open-data"; const collection: string = "yellow-taxi"; const id: string = "document-ricky"; return await sdk.document.create(index, collection, {}, id); |
Then The document "document-ricky" should exist
And I should match stdout with "document-ricky"

@mappings
Scenario: Impersonate an user
When I run the command "sdk:query" with:
| arg | auth:getCurrentUser | |
| flag | --as | gordon |
Then I should match stdout with:
| "_id": "gordon" |

0 comments on commit e008d87

Please sign in to comment.