Skip to content

Commit

Permalink
Fix tests after substitution of ctime with isoformat.
Browse files Browse the repository at this point in the history
This is part of an hotfix for support ticket 40034

References: 40034

Signed-off-by: Giulio Calacoci <[email protected]>
  • Loading branch information
gcalacoci committed Oct 28, 2024
1 parent b1dd58f commit b3376a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_barman_cloud_backup_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_cloud_backup_show_json(
assert json.loads(out)["main"] == {
"backup_label": None,
"begin_offset": 40,
"begin_time": "Tue Jan 19 03:14:08 2038",
"begin_time": "2038-01-19T03:14:08",
"begin_wal": "000000010000000000000002",
"begin_xlog": "0/2000028",
"children_backup_ids": None,
Expand All @@ -176,7 +176,7 @@ def test_cloud_backup_show_json(
"data_checksums": "on",
"deduplicated_size": 1024,
"end_offset": 184,
"end_time": "Tue Jan 19 04:14:08 2038",
"end_time": "2038-01-19T04:14:08",
"end_wal": "000000010000000000000004",
"end_xlog": "0/20000B8",
"error": None,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
"deduplicated_size": 1024,
"version": 90302,
"ident_file": "/pgdata/location/pg_ident.conf",
"end_time": "Wed Jul 23 12:00:43 2014",
"end_time": "2014-07-23T12:00:43",
"status": "DONE",
"backup_id": "1234567890",
"config_file": "/pgdata/location/postgresql.conf",
"timeline": 1,
"end_xlog": "0/20000B8",
"pgdata": "/pgdata/location",
"begin_time": "Wed Jul 23 11:00:43 2014",
"begin_time": "2014-07-23T11:00:43",
"hba_file": "/pgdata/location/pg_hba.conf",
"end_offset": 184,
"tablespaces": [
Expand Down

0 comments on commit b3376a2

Please sign in to comment.