Skip to content

Commit 52e4cd6

Browse files
authored
3.0 Introduce Authentication and User Management BDDs (#317)
## Usage and product changes We introduce behaviour steps declarations for authentication and user management. The test is relevant only for connecting drivers, so it has been moved to the `driver` package. Additionally, `insert` and `delete` feature files has been updated to unlock more steps for usage against 3.0 (refactored query execution, session-transaction management, and some queries). Note that these files are still not fully suitable and require more refactoring and testing.
1 parent 70f42c3 commit 52e4cd6

File tree

7 files changed

+929
-903
lines changed

7 files changed

+929
-903
lines changed

concept/thing/attribute.feature

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: Concept Attribute
4343
Given attribute(email) set annotation: @regex("\S+@\S+\.\S+")
4444
Given transaction commits
4545
Given connection open write transaction for database: typedb
46-
Given set time zone: Europe/London
46+
Given set time-zone: Europe/London
4747

4848
Scenario Outline: Attribute with value type <type> can be created
4949
When $x = attribute(<attr>) put instance with value: <value>
@@ -143,15 +143,15 @@ Feature: Concept Attribute
143143
When attribute(email) put instance with value: alice-email-com; fails
144144

145145
Scenario: Datetime attribute can be inserted in one timezone and retrieved in another with no change in the value
146-
When set time zone: Asia/Calcutta
146+
When set time-zone: Asia/Calcutta
147147
When $x = attribute(event-datetime) put instance with value: 2001-08-23 08:30:00
148148
Then attribute $x exists
149149
Then attribute $x has type: event-datetime
150150
Then attribute $x has value type: datetime
151151
Then attribute $x has value: 2001-08-23 08:30:00
152152
When transaction commits
153153
When connection open read transaction for database: typedb
154-
When set time zone: America/Chicago
154+
When set time-zone: America/Chicago
155155
When $x = attribute(event-datetime) get instance with value: 2001-08-23 08:30:00
156156
Then attribute $x exists
157157
Then attribute $x has type: event-datetime

connection/BUILD

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ exports_files([
1010
"database.feature",
1111
"session.feature",
1212
"transaction.feature",
13-
"user.feature",
1413
])
1514

1615
checkstyle_test(

connection/user.feature

-170
This file was deleted.

driver/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
88

99
files = [
1010
"driver.feature",
11+
"user.feature",
1112
]
1213

1314
filegroup(

0 commit comments

Comments
 (0)