From b9ccb9ef63f32526375d6ed42369f486a4c57955 Mon Sep 17 00:00:00 2001 From: Libor Rysavy Date: Thu, 2 Dec 2021 21:09:55 +0100 Subject: [PATCH 1/2] Return links that are still on API to tests --- gooddata-java-model/src/test/resources/project/projects.json | 1 + gooddata-java/src/test/resources/project/projects-for-user.json | 1 + 2 files changed, 2 insertions(+) diff --git a/gooddata-java-model/src/test/resources/project/projects.json b/gooddata-java-model/src/test/resources/project/projects.json index 56a304dfa..5db4b0093 100644 --- a/gooddata-java-model/src/test/resources/project/projects.json +++ b/gooddata-java-model/src/test/resources/project/projects.json @@ -44,6 +44,7 @@ "eventstores": "/gdc/projects/defaultEmptyProject/dataload/eventstore/stores", "execute": "/gdc/projects/defaultEmptyProject/execute", "clearCaches": "/gdc/projects/defaultEmptyProject/clearCaches", + "projectFeatureFlags": "/gdc/projects/defaultEmptyProject/projectFeatureFlags", "config": "/gdc/projects/defaultEmptyProject/config" } } diff --git a/gooddata-java/src/test/resources/project/projects-for-user.json b/gooddata-java/src/test/resources/project/projects-for-user.json index ce474babd..3e659c17a 100644 --- a/gooddata-java/src/test/resources/project/projects-for-user.json +++ b/gooddata-java/src/test/resources/project/projects-for-user.json @@ -45,6 +45,7 @@ "execute": "/gdc/projects/defaultEmptyProject/execute", "clearCaches": "/gdc/projects/defaultEmptyProject/clearCaches", "checkXaeCompatibility": "/gdc/projects/defaultEmptyProject/checkXaeCompatibility", + "projectFeatureFlags": "/gdc/projects/defaultEmptyProject/projectFeatureFlags", "config": "/gdc/projects/defaultEmptyProject/config" } } From 5571714b7c1d2da9c1850588dd802e6391867a4e Mon Sep 17 00:00:00 2001 From: Libor Rysavy Date: Fri, 3 Dec 2021 14:44:37 +0100 Subject: [PATCH 2/2] Add unknown link to test forward compatibility of project --- .../src/test/resources/project/project-vertica.json | 3 ++- gooddata-java-model/src/test/resources/project/project.json | 3 ++- gooddata-java-model/src/test/resources/project/projects.json | 3 ++- gooddata-java/src/test/resources/project/project-deleted.json | 3 ++- gooddata-java/src/test/resources/project/project-loading.json | 3 ++- gooddata-java/src/test/resources/project/project-vertica.json | 3 ++- gooddata-java/src/test/resources/project/project.json | 3 ++- .../src/test/resources/project/projects-for-user.json | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/gooddata-java-model/src/test/resources/project/project-vertica.json b/gooddata-java-model/src/test/resources/project/project-vertica.json index a04bda0b3..53e7f3fab 100644 --- a/gooddata-java-model/src/test/resources/project/project-vertica.json +++ b/gooddata-java-model/src/test/resources/project/project-vertica.json @@ -25,7 +25,8 @@ "execute" : "/gdc/projects/PROJECT_ID/execute", "schedules" : "/gdc/projects/PROJECT_ID/schedules", "templates" : "/gdc/md/PROJECT_ID/templates", - "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores" + "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." }, "meta" : { "created" : "2014-04-11 11:43:45", diff --git a/gooddata-java-model/src/test/resources/project/project.json b/gooddata-java-model/src/test/resources/project/project.json index fa06c00c3..5f5e4bb3c 100644 --- a/gooddata-java-model/src/test/resources/project/project.json +++ b/gooddata-java-model/src/test/resources/project/project.json @@ -26,7 +26,8 @@ "execute" : "/gdc/projects/PROJECT_ID/execute", "schedules" : "/gdc/projects/PROJECT_ID/schedules", "templates" : "/gdc/md/PROJECT_ID/templates", - "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores" + "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." }, "meta" : { "created" : "2014-04-11 11:43:45", diff --git a/gooddata-java-model/src/test/resources/project/projects.json b/gooddata-java-model/src/test/resources/project/projects.json index 5db4b0093..27a8c145e 100644 --- a/gooddata-java-model/src/test/resources/project/projects.json +++ b/gooddata-java-model/src/test/resources/project/projects.json @@ -45,7 +45,8 @@ "execute": "/gdc/projects/defaultEmptyProject/execute", "clearCaches": "/gdc/projects/defaultEmptyProject/clearCaches", "projectFeatureFlags": "/gdc/projects/defaultEmptyProject/projectFeatureFlags", - "config": "/gdc/projects/defaultEmptyProject/config" + "config": "/gdc/projects/defaultEmptyProject/config", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." } } } diff --git a/gooddata-java/src/test/resources/project/project-deleted.json b/gooddata-java/src/test/resources/project/project-deleted.json index 789cd5ae2..dabf7e58d 100644 --- a/gooddata-java/src/test/resources/project/project-deleted.json +++ b/gooddata-java/src/test/resources/project/project-deleted.json @@ -23,7 +23,8 @@ "execute": "/gdc/projects/PROJECT_ID/execute", "schedules": "/gdc/projects/PROJECT_ID/schedules", "templates": "/gdc/md/PROJECT_ID/templates", - "eventstores": "/gdc/projects/PROJECT_ID/dataload/eventstore/stores" + "eventstores": "/gdc/projects/PROJECT_ID/dataload/eventstore/stores", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." }, "meta": { "created": "2014-06-06 19:54:16", diff --git a/gooddata-java/src/test/resources/project/project-loading.json b/gooddata-java/src/test/resources/project/project-loading.json index 3e6e4e6a6..5b79932e1 100644 --- a/gooddata-java/src/test/resources/project/project-loading.json +++ b/gooddata-java/src/test/resources/project/project-loading.json @@ -23,7 +23,8 @@ "execute": "/gdc/projects/PROJECT_ID/execute", "schedules": "/gdc/projects/PROJECT_ID/schedules", "templates": "/gdc/md/PROJECT_ID/templates", - "eventstores": "/gdc/projects/PROJECT_ID/dataload/eventstore/stores" + "eventstores": "/gdc/projects/PROJECT_ID/dataload/eventstore/stores", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." }, "meta": { "created": "2014-06-06 19:54:16", diff --git a/gooddata-java/src/test/resources/project/project-vertica.json b/gooddata-java/src/test/resources/project/project-vertica.json index a04bda0b3..53e7f3fab 100644 --- a/gooddata-java/src/test/resources/project/project-vertica.json +++ b/gooddata-java/src/test/resources/project/project-vertica.json @@ -25,7 +25,8 @@ "execute" : "/gdc/projects/PROJECT_ID/execute", "schedules" : "/gdc/projects/PROJECT_ID/schedules", "templates" : "/gdc/md/PROJECT_ID/templates", - "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores" + "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." }, "meta" : { "created" : "2014-04-11 11:43:45", diff --git a/gooddata-java/src/test/resources/project/project.json b/gooddata-java/src/test/resources/project/project.json index fa06c00c3..5f5e4bb3c 100644 --- a/gooddata-java/src/test/resources/project/project.json +++ b/gooddata-java/src/test/resources/project/project.json @@ -26,7 +26,8 @@ "execute" : "/gdc/projects/PROJECT_ID/execute", "schedules" : "/gdc/projects/PROJECT_ID/schedules", "templates" : "/gdc/md/PROJECT_ID/templates", - "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores" + "eventstores" : "/gdc/projects/PROJECT_ID/dataload/eventstore/stores", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." }, "meta" : { "created" : "2014-04-11 11:43:45", diff --git a/gooddata-java/src/test/resources/project/projects-for-user.json b/gooddata-java/src/test/resources/project/projects-for-user.json index 3e659c17a..e0b09cd2f 100644 --- a/gooddata-java/src/test/resources/project/projects-for-user.json +++ b/gooddata-java/src/test/resources/project/projects-for-user.json @@ -46,7 +46,8 @@ "clearCaches": "/gdc/projects/defaultEmptyProject/clearCaches", "checkXaeCompatibility": "/gdc/projects/defaultEmptyProject/checkXaeCompatibility", "projectFeatureFlags": "/gdc/projects/defaultEmptyProject/projectFeatureFlags", - "config": "/gdc/projects/defaultEmptyProject/config" + "config": "/gdc/projects/defaultEmptyProject/config", + "unknownLink": "To verify we're able to accept also links that are not being deserialized by this SDK." } } }