From 455159dd1cdd8ab49e72e10d4c464209f2181424 Mon Sep 17 00:00:00 2001 From: James Williams Date: Thu, 27 Apr 2023 09:32:33 +0100 Subject: [PATCH 1/2] feat: add test: user can get themselves --- connection/user.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/connection/user.feature b/connection/user.feature index 76eb861e..734cadc3 100644 --- a/connection/user.feature +++ b/connection/user.feature @@ -36,6 +36,14 @@ Feature: Connection Users Given users delete: user Then users not contains: user + Scenario: users can get themselves + Given typedb starts + Given connection opens with authentication: admin, password + When users create: user, password + Then connection closes + Given connection opens with authentication: user, password + Then user get self + @ignore-typedb-client-python @ignore-typedb-client-nodejs Scenario: user passwords must comply with the minimum length Given typedb has configuration From 04973b8312a78b1445ab6011f3b094585cfd9acf Mon Sep 17 00:00:00 2001 From: James Williams Date: Thu, 27 Apr 2023 11:53:28 +0100 Subject: [PATCH 2/2] feat: get connected user --- connection/user.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection/user.feature b/connection/user.feature index 734cadc3..8e7600ef 100644 --- a/connection/user.feature +++ b/connection/user.feature @@ -36,13 +36,13 @@ Feature: Connection Users Given users delete: user Then users not contains: user - Scenario: users can get themselves + Scenario: connected user is retrievable Given typedb starts Given connection opens with authentication: admin, password When users create: user, password Then connection closes Given connection opens with authentication: user, password - Then user get self + Then get connected user @ignore-typedb-client-python @ignore-typedb-client-nodejs Scenario: user passwords must comply with the minimum length