Skip to content

Commit

Permalink
Tweaked event log item format (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux authored Feb 12, 2024
1 parent 2c1f701 commit f686bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/main/java/seatsio/eventLog/EventLogItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class EventLogItem {

public long id;
public String type;
public String workspaceKey;
public Instant date;
public Instant timestamp;
public Map<?, ?> data;
}
5 changes: 2 additions & 3 deletions src/test/java/seatsio/eventLog/ListEventLogItemsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ public void properties() throws InterruptedException {

EventLogItem eventLogItem = eventLogItems.findFirst().get();
assertThat(eventLogItem.type).isEqualTo("chart.created");
assertThat(eventLogItem.date).isNotNull();
assertThat(eventLogItem.workspaceKey).isEqualTo(workspace.key);
assertThat(eventLogItem.data).isEqualTo(Map.of("key", chart.key));
assertThat(eventLogItem.timestamp).isNotNull();
assertThat(eventLogItem.data).isEqualTo(Map.of("key", chart.key, "workspaceKey", workspace.key));
assertThat(eventLogItem.id).isGreaterThan(0);
}

Expand Down

0 comments on commit f686bf5

Please sign in to comment.