Skip to content

Commit a544904

Browse files
committed
change engagement.id to engagement.projectId. Default omp code to debug
1 parent 9f70861 commit a544904

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/main/java/com/redhat/labs/omp/models/Engagement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@AllArgsConstructor
1212
public class Engagement {
1313

14-
private int id;
14+
private int projectId;
1515
private String customerName;
1616
private String projectName;
1717
private String description;

src/main/java/com/redhat/labs/omp/service/EngagementService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Project createEngagement(Engagement engagement) {
6262

6363
// create project structure
6464
Project project = createProjectStucture(engagement);
65-
engagement.setId(project.getId());
65+
engagement.setProjectId(project.getId());
6666

6767
// get all template files
6868
List<File> templateFiles = new ArrayList<>();

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ quarkus.log.console.format=%d{HH:mm:ss} %-5p [%c{2.}] (%t) %s%e%n
77
quarkus.log.console.level=DEBUG
88
quarkus.log.console.color=false
99
quarkus.log.category."io.quarkus".level=INFO
10-
quarkus.log.category."com.redhat.labs".level=${OMP_LOGGING:INFO}
10+
quarkus.log.category."com.redhat.labs".level=${OMP_LOGGING:DEBUG}
1111
quarkus.log.console.json=false
1212
%dev.quarkus.log.console.json=false
1313
%test.quarkus.log.console.json=false

src/test/java/com/redhat/labs/omp/resource/EngagementResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public void testGetAllEngagementsSuccess() {
2525
.statusCode(200)
2626
.body(is("[{\"archive_date\":\"20210125\",\"customer_contact_email\":\"[email protected]\",\"customer_contact_name\":\"Reg Dunlop\",\"customer_name\":\"customer1\","
2727
+ "\"description\":\"Charleston\",\"end_date\":\"20201225\",\"engagement_lead_email\":\"[email protected]\",\"engagement_lead_name\":\"Doug Gilmour\","
28-
+ "\"id\":0,\"location\":\"Raleigh, NC\",\"ocp_cloud_provider_name\":\"GCP\",\"ocp_cloud_provider_region\":\"West\",\"ocp_cluster_size\":\"medium\","
29-
+ "\"ocp_persistent_storage_size\":\"50GB\",\"ocp_sub_domain\":\"jello\",\"ocp_version\":\"v4.2\",\"project_name\":\"project1\",\"start_date\":\"20200202\","
28+
+ "\"location\":\"Raleigh, NC\",\"ocp_cloud_provider_name\":\"GCP\",\"ocp_cloud_provider_region\":\"West\",\"ocp_cluster_size\":\"medium\","
29+
+ "\"ocp_persistent_storage_size\":\"50GB\",\"ocp_sub_domain\":\"jello\",\"ocp_version\":\"v4.2\",\"project_id\":0,\"project_name\":\"project1\",\"start_date\":\"20200202\","
3030
+ "\"technical_lead_email\":\"[email protected]\",\"technical_lead_name\":\"Wendel Clark\"}]"));
3131

3232
}

src/test/resources/engagement.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"end_date": "20201225",
88
"engagement_lead_email": "[email protected]",
99
"engagement_lead_name": "Doug Gilmour",
10-
"id": 0,
10+
"project_id": 0,
1111
"location": "Raleigh, NC",
1212
"ocp_cloud_provider_name": "GCP",
1313
"ocp_cloud_provider_region": "West",

0 commit comments

Comments
 (0)