diff --git a/server/e2e/gql_import_export_test.go b/server/e2e/gql_import_export_test.go index 83a6055f0a..eeb378a40b 100644 --- a/server/e2e/gql_import_export_test.go +++ b/server/e2e/gql_import_export_test.go @@ -35,11 +35,11 @@ func TestCallExportProject(t *testing.T) { response.Status(http.StatusOK) - // response.JSON(). - // Object(). - // Value("data").Object(). - // Value("exportProject").Object(). - // Value("projectData").Object() + response.JSON(). + Object(). + Value("data").Object(). + Value("exportProject").Object(). + Value("projectData").Object() } @@ -71,10 +71,10 @@ func TestCallImportProject(t *testing.T) { response.Status(http.StatusOK) - // response.JSON(). - // Object(). - // Value("data").Object(). - // Value("exportProject").Object(). - // Value("projectData").Object() + response.JSON(). + Object(). + Value("data").Object(). + Value("exportProject").Object(). + Value("projectData").Object() } diff --git a/server/e2e/project.json b/server/e2e/project.json index bdc1bb4130..987a89819f 100644 --- a/server/e2e/project.json +++ b/server/e2e/project.json @@ -1,5 +1,349 @@ { - "plugins": [], - "project": {}, - "scene": {} -} \ No newline at end of file + "plugins": [ + { + "id": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0", + "sceneId": "01j7g9ddv4sbf8tgt5c6xxj5xc", + "name": "Plugin Communication Demo for Beta", + "version": "1.0.0", + "description": "", + "author": "", + "repositoryUrl": "", + "extensions": [ + { + "extensionId": "widgetcomm", + "pluginId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0", + "type": "WIDGET", + "name": "Communication Demo Widget", + "description": "", + "icon": "", + "singleOnly": false, + "propertySchemaId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0/widgetcomm", + "allTranslatedName": { + "en": "Communication Demo Widget" + }, + "translatedName": "", + "translatedDescription": "" + }, + { + "extensionId": "storyblockcomm", + "pluginId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0", + "type": "StoryBlock", + "name": "Communication Demo Story Block", + "description": "", + "icon": "", + "singleOnly": false, + "propertySchemaId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0/storyblockcomm", + "allTranslatedName": { + "en": "Communication Demo Story Block" + }, + "translatedName": "", + "translatedDescription": "" + }, + { + "extensionId": "infoboxblockcomm", + "pluginId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0", + "type": "InfoboxBlock", + "name": "Communication Demo Infobox Block", + "description": "", + "icon": "", + "singleOnly": false, + "propertySchemaId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0/infoboxblockcomm", + "allTranslatedName": { + "en": "Communication Demo Infobox Block" + }, + "translatedName": "", + "translatedDescription": "" + } + ], + "allTranslatedName": { + "en": "Plugin Communication Demo for Beta" + }, + "translatedName": "", + "translatedDescription": "" + } + ], + "project": { + "id": "01j7g9ddttkpnt3esk8h4w7xhv", + "isArchived": false, + "isBasicAuthActive": false, + "basicAuthUsername": "", + "basicAuthPassword": "", + "createdAt": "2024-09-11T19:17:39.418+09:00", + "updatedAt": "2024-09-12T02:07:39.09Z", + "name": "ProjectName1", + "description": "ProjectOverview1", + "alias": "", + "publicTitle": "", + "publicDescription": "", + "publicImage": "", + "publicNoIndex": false, + "imageUrl": { + "Scheme": "http", + "Opaque": "", + "User": null, + "Host": "localhost:8080", + "Path": "/assets/01j7g9d988ct8hajjxfsb6e1n6.jpeg", + "RawPath": "", + "OmitHost": false, + "ForceQuery": false, + "RawQuery": "", + "Fragment": "", + "RawFragment": "" + }, + "teamId": "01j7g99pb1q1vf684af39bajw5", + "visualizer": "cesium", + "publishmentStatus": "PRIVATE", + "coreSupport": true, + "enableGa": false, + "trackingId": "", + "starred": false + }, + "scene": { + "schemaVersion": 1, + "id": "01j7g9ddv4sbf8tgt5c6xxj5xc", + "publishedAt": "2024-09-12T11:07:46.117668+09:00", + "property": { + "default": { + "ion": { + "type": "string", + "value": "" + } + }, + "tiles": [ + { + "id": "01j7g9ddv4sbf8tgt5cbjxrksh", + "tile_opacity": { + "type": "number", + "value": 1 + } + }, + { + "id": "01j7hzp3akr64nz033582braxa", + "tile_type": { + "type": "string", + "value": "default_label" + }, + "tile_zoomLevel": { + "type": "array", + "value": [ + null, + null + ] + } + } + ] + }, + "plugins": {}, + "layers": null, + "widgets": [ + { + "id": "01j7g9h4f1k93vspn3gdtz67az", + "pluginId": "reearth", + "extensionId": "button", + "property": { + "default": { + "buttonBgcolor": { + "type": "string", + "value": "#79b4beff" + }, + "buttonColor": { + "type": "string", + "value": "#171289ff" + }, + "buttonTitle": { + "type": "string", + "value": "TestButton1" + } + } + }, + "enabled": false, + "extended": false + }, + { + "id": "01j7g9jckefd0zxyy34bbygmhy", + "pluginId": "reearth", + "extensionId": "navigator", + "property": { + "default": { + "visible": { + "type": "string", + "value": "desktop" + } + } + }, + "enabled": false, + "extended": false + }, + { + "id": "01j7g9jr89rjq1egrb1hhcd8jy", + "pluginId": "01j7g9ddv4sbf8tgt5c6xxj5xc~reearth-plugin-communication-demo-beta~1.0.0", + "extensionId": "widgetcomm", + "property": {}, + "enabled": false, + "extended": false + } + ], + "widgetAlignSystem": { + "inner": null, + "outer": { + "left": { + "top": { + "widgetIds": [ + "01j7g9h4f1k93vspn3gdtz67az", + "01j7g9jr89rjq1egrb1hhcd8jy" + ], + "align": "start", + "padding": { + "top": 0, + "bottom": 0, + "left": 0, + "right": 0 + }, + "gap": null, + "centered": false, + "background": null + }, + "middle": null, + "bottom": null + }, + "center": null, + "right": { + "top": { + "widgetIds": [ + "01j7g9jckefd0zxyy34bbygmhy" + ], + "align": "start", + "padding": { + "top": 0, + "bottom": 0, + "left": 0, + "right": 0 + }, + "gap": null, + "centered": false, + "background": null + }, + "middle": null, + "bottom": null + } + } + }, + "tags": [], + "clusters": [], + "story": { + "id": "01j7g9ddvkarms2gmc59ysw66r", + "property": {}, + "pages": [ + { + "id": "01j7g9ddwk4a12x1t8wm865s6h", + "property": { + "title": { + "color": { + "type": "string", + "value": "#9a19bfff" + }, + "title": { + "type": "string", + "value": "Title1" + } + } + }, + "title": "Untitled", + "blocks": [ + { + "id": "01j7g9mdnjk1jafw592btqx6t7", + "property": { + "default": { + "text": { + "type": "string", + "value": "{\"root\":{\"children\":[{\"children\":[{\"detail\":0,\"format\":1,\"mode\":\"normal\",\"style\":\"\",\"text\":\"Block1\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"paragraph\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}" + } + } + }, + "plugins": null, + "extensionId": "textStoryBlock", + "pluginId": "reearth" + }, + { + "id": "01j7g9n3x4yqae71crdjcpeyc0", + "property": { + "default": { + "text": { + "type": "string", + "value": "## MarkDown1" + } + } + }, + "plugins": null, + "extensionId": "mdTextStoryBlock", + "pluginId": "reearth" + }, + { + "id": "01j7g9nnnap0cwa1farwd841xc", + "property": { + "default": { + "src": { + "type": "url", + "value": "http://localhost:8080/assets/01j7g9nwtq1zqc7ex5gfvd1mbe.jpeg" + } + } + }, + "plugins": null, + "extensionId": "imageStoryBlock", + "pluginId": "reearth" + } + ], + "swipeable": false, + "swipeableLayers": null, + "layers": [] + } + ], + "position": "right", + "bgColor": "#b2efd8ff" + }, + "nlsLayers": [ + { + "id": "01j7g9gwj6qbv286pcwwmwq5ds", + "title": "japan_architecture (2).csv", + "layerType": "simple", + "config": { + "data": { + "csv": { + "latColumn": "lat", + "lngColumn": "lng" + }, + "type": "csv", + "url": "http://localhost:8080/assets/01j7g9gpba44e0nxwc727nax0q.csv" + }, + "layerStyleId": "" + }, + "isVisible": true, + "nlsInfobox": { + "id": "01j7hzs4e48p8s1cw7thep56b4", + "property": {}, + "blocks": [] + }, + "isSketch": false + } + ], + "layerStyles": [ + { + "id": "01j7hzqgycv76hxsygmcrb47m6", + "name": "スタイル_0", + "value": { + "color": "red" + } + }, + { + "id": "01j7hzrgc3ag8m1ftzye05csgx", + "name": "スタイル_1", + "value": { + "font": "bold" + } + } + ], + "coreSupport": true, + "enableGa": false, + "trackingId": "" + } + } \ No newline at end of file