Skip to content

Commit

Permalink
feat(7.3): add stub for get_tenant_id
Browse files Browse the repository at this point in the history
  • Loading branch information
savonarola committed Apr 3, 2024
1 parent c90d550 commit eb7a405
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/tester.es
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,13 @@ execute(_TxObj, #st{db = Db} = St, <<"TENANT_LIST">>) ->
{Tenants, _} = lists:unzip(TenantsKV), %% TODO: verify value json?
stack_push(St, erlfdb_tuple:pack(list_to_tuple(Tenants))),
St;
execute(_TxObj, #st{tenant = Tenant} = St, <<"TENANT_GET_ID">>) ->
case Tenant of
undefined -> stack_push(St, <<"NO_ACTIVE_TENANT">>);
_ ->
%% TODO: get tenant id actually
stack_push(St, <<"GOT_TENANT_ID">>)
end;
execute(_TxObj, _St, UnknownOp) ->
erlang:error({unknown_op, UnknownOp}).

Expand Down

0 comments on commit eb7a405

Please sign in to comment.