Skip to content

Commit a80ba63

Browse files
committed
revert 0a57614
1 parent dcb9b0f commit a80ba63

3 files changed

Lines changed: 25 additions & 6 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python3
2+
3+
# SPDX-FileCopyrightText: (C) 2025-2026 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
import os
7+
import logging
8+
9+
TEST_NAME = "NEX-T10433-API"
10+
11+
def test_only_upload_glb_main_api(rest, scene_uid, result_recorder):
12+
invalid_files = ["box_invalid.glb", "box.gltf", "box.obj", "good_data.txt"]
13+
14+
for f in invalid_files:
15+
logging.info(f"Trying to upload invalid file: {f}")
16+
path = os.path.join("tests", "ui", "test_media", f)
17+
with open(path, "rb") as fp:
18+
res = rest.updateScene(scene_uid, {"map": fp})
19+
assert res.statusCode not in (200, 201)
20+
logging.info(f"Correctly rejected file: {f}")
21+
22+
logging.info("All invalid files were correctly rejected.")
23+
24+
result_recorder.success()

tests/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ _functional-tests: \
166166
sensor-scene-api \
167167
sensors-send-events \
168168
superuser-crud-operations-api \
169-
upload-3d-glb-file-api \
170169
upload-only-3d-glb-files-api \
171170
vdms-similarity-search \
172171
visibility-unregulated \

tests/Makefile.functional

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,11 @@ infer-rotation: # NEX-T10543
4747
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_rotation_from_velocity.py, '$(SERVICES)', true, /run/secrets/controller.auth)
4848
$(eval SECRETSDIR := $(OLDSECRETSDIR))
4949

50-
upload-3d-glb-file-api: # NEX-T10425-API
51-
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
52-
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_upload_3d_glb_file_api.py, 'pgserver web', true, /run/secrets/controller.auth)
53-
5450
upload-only-3d-glb-files-api: # NEX-T10433-API
5551
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
5652
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_upload_only_3d_glb_files_api.py, 'pgserver web', true, /run/secrets/controller.auth)
5753

58-
sensor-scene-api: # NEX-T10396
54+
superuser-crud-operations-api: # NEX-T21775
5955
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
6056
$(eval OLDSECRETSDIR := $(SECRETSDIR))
6157
$(eval SECRETSDIR := $(PWD)/manager/secrets)

0 commit comments

Comments
 (0)