This changes multiple IDs in the colors persona to be 12 characters. It also renames some IDs in an attempt to make them more consistent. This also changes the order of the columns in some insert statements to follow the pattern of the other insert statements. This also adds documentation to the top of colors persona file in an attempt to explain the general patterns being followed in the file.
25 lines
1.4 KiB
PL/PgSQL
25 lines
1.4 KiB
PL/PgSQL
-- Copyright (c) HashiCorp, Inc.
|
|
-- SPDX-License-Identifier: MPL-2.0
|
|
|
|
begin;
|
|
select plan(8);
|
|
|
|
select is(count(*), 1::bigint) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
select is(bytes_up, null) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
select is(bytes_down, null) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
select is(connection_closed_time, 'infinity'::wh_timestamp) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
|
|
update session_connection set
|
|
bytes_up = 10,
|
|
bytes_down = 5,
|
|
closed_reason = 'closed by end-user'
|
|
where public_id = 's1c1___clare';
|
|
|
|
select is(count(*), 2::bigint) from wh_session_connection_accumulating_fact;
|
|
select is(bytes_up, 10::wh_bytes_transmitted) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
select is(bytes_down, 5::wh_bytes_transmitted) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
select is(connection_closed_time, now()::wh_timestamp) from wh_session_connection_accumulating_fact where connection_id = 's1c1___clare';
|
|
|
|
select * from finish();
|
|
rollback;
|