Skip to content

Commit

Permalink
refine tests
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jun 25, 2024
1 parent 88670e3 commit 870d924
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions e2e_test/error_ui/simple/license.slt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ Caused by these errors (recent errors listed first):
5: InvalidToken


# Set the license key to empty. This demonstrates the default behavior in production, i.e., free tier.
statement ok
ALTER SYSTEM SET license_key TO '';

query error
SELECT rw_test_paid_tier();
----
db error: ERROR: Failed to run the query

Caused by these errors (recent errors listed first):
1: Expr error
2: error while evaluating expression `test_paid_tier()`
3: feature TestPaid is only available for tier Paid and above, while the current tier is Free

Hint: You may want to set a license key with `ALTER SYSTEM SET license_key = '...';` command.


# Set the license key to default. In debug mode, this will set the license key to a paid tier key.
statement ok
ALTER SYSTEM SET license_key TO DEFAULT;
Expand Down

0 comments on commit 870d924

Please sign in to comment.