Skip to content

Commit 84c02bd

Browse files
committed
TestBricksList test
1 parent 88a540d commit 84c02bd

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

internal/orchestrator/bricks/bricks_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -252,19 +252,6 @@ func TestGetBrickInstanceVariableDetails(t *testing.T) {
252252
expectedConfigVariables []BrickConfigVariable
253253
expectedVariableMap map[string]string
254254
}{
255-
{
256-
name: "variable is present in the map",
257-
brick: &bricksindex.Brick{
258-
Variables: []bricksindex.BrickVariable{
259-
{Name: "VAR1", Description: "desc"},
260-
},
261-
},
262-
userVariables: map[string]string{"VAR1": "value1"},
263-
expectedConfigVariables: []BrickConfigVariable{
264-
{Name: "VAR1", Value: "value1", Description: "desc", Required: true},
265-
},
266-
expectedVariableMap: map[string]string{"VAR1": "value1"},
267-
},
268255
{
269256
name: "variable not present in the map",
270257
brick: &bricksindex.Brick{

internal/orchestrator/bricks/testdata/bricks-list.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,23 @@ bricks:
2323
mount_devices_into_container: false
2424
ports: []
2525
category: storage
26+
- id: arduino:image_classification
27+
name: Image Classification
28+
description: "Brick for image classification using a pre-trained model. It processes\
29+
\ images and returns the predicted class label and confidence score.\nBrick is\
30+
\ designed to work with pre-trained models provided by framework or with custom\
31+
\ image classification models trained on Edge Impulse platform. \n"
32+
require_container: true
33+
require_model: true
34+
require_devices: false
35+
mount_devices_into_container: false
36+
ports: []
37+
category: video
38+
model_name: mobilenet-image-classification
39+
variables:
40+
- name: CUSTOM_MODEL_PATH
41+
default_value: /home/arduino/.arduino-bricks/ei-models
42+
description: path to the custom model directory
43+
- name: EI_CLASSIFICATION_MODEL
44+
default_value: /models/ootb/ei/mobilenet-v2-224px.eim
45+
description: path to the model file

0 commit comments

Comments
 (0)