diff --git a/src/main/java/com/redhat/labs/lodestar/models/Engagement.java b/src/main/java/com/redhat/labs/lodestar/models/Engagement.java index 4b1fa31..80a52a4 100644 --- a/src/main/java/com/redhat/labs/lodestar/models/Engagement.java +++ b/src/main/java/com/redhat/labs/lodestar/models/Engagement.java @@ -37,6 +37,7 @@ public class Engagement { private Launch launch; private List engagementUsers; private List hostingEnvironments; + private String timezone; private Status status; private List commits; diff --git a/src/test/java/com/redhat/labs/lodestar/resource/EngagementResourceTest.java b/src/test/java/com/redhat/labs/lodestar/resource/EngagementResourceTest.java index 687edad..413e22c 100644 --- a/src/test/java/com/redhat/labs/lodestar/resource/EngagementResourceTest.java +++ b/src/test/java/com/redhat/labs/lodestar/resource/EngagementResourceTest.java @@ -139,7 +139,8 @@ void testGetAllEngagementsSuccess() { " ]\n" + " },\n" + " \"technical_lead_email\": \"wendel17@leafs.com\",\n" + - " \"technical_lead_name\": \"Wendel Clark\"\n" + + " \"technical_lead_name\": \"Wendel Clark\",\n" + + " \"timezone\": \"America/Denver\"\n" + " }\n" + "]")); @@ -177,7 +178,8 @@ void tesetGetEngagementByNamespace() { " \"public_reference\": false,\n" + " \"start_date\": \"20200202\",\n" + " \"technical_lead_email\": \"wendel17@leafs.com\",\n" + - " \"technical_lead_name\": \"Wendel Clark\"\n" + + " \"technical_lead_name\": \"Wendel Clark\",\n" + + " \"timezone\": \"America/Denver\"\n" + "}")); } @@ -466,7 +468,8 @@ void testGetProjectSuccess() { " ]\n" + " },\n" + " \"technical_lead_email\": \"wendel17@leafs.com\",\n" + - " \"technical_lead_name\": \"Wendel Clark\"\n" + + " \"technical_lead_name\": \"Wendel Clark\",\n" + + " \"timezone\": \"America/Denver\"\n" + "}")); } diff --git a/src/test/resources/engagement.json b/src/test/resources/engagement.json index 18edb3f..f7c3da5 100644 --- a/src/test/resources/engagement.json +++ b/src/test/resources/engagement.json @@ -19,5 +19,6 @@ "public_reference": false, "start_date": "20200202", "technical_lead_email": "wendel17@leafs.com", - "technical_lead_name": "Wendel Clark" + "technical_lead_name": "Wendel Clark", + "timezone": "America/Denver" }