-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deviceManagement): mapped missing DeviceInventoryContainer.state…
… property Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
- Loading branch information
Showing
12 changed files
with
241 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
qa/integration/src/test/resources/mqtt/INVENTORY-V1_GET_inventory_containers_reply.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"containers": [ | ||
{ | ||
"name": "consumer-lifecycle", | ||
"version": "kapua/kapua-consumer-lifecycle:latest", | ||
"type": "DOCKER" | ||
}, | ||
{ | ||
"name": "consumer-telemetry", | ||
"version": "kapua/kapua-consumer-telemetry:latest", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "job-engine", | ||
"version": "kapua/kapua-job-engine:latest", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "kapua-console", | ||
"version": "kapua/kapua-console:latest", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "kapua-api", | ||
"version": "kapua/kapua-api:latest", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "message-broker", | ||
"version": "kapua/kapua-broker:latest", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "es", | ||
"version": "docker.elastic.co/elasticsearch/elasticsearch:7.8.1", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "db", | ||
"version": "kapua/kapua-sql:latest", | ||
"type": "DOCKER", | ||
"state": "ACTIVE" | ||
}, | ||
{ | ||
"name": "events-broker", | ||
"version": "kapua/kapua-events-broker:latest", | ||
"type": "DOCKER", | ||
"state": "UNKNOWN" | ||
}, | ||
{ | ||
"name": "clever_heisenberg", | ||
"version": "kura_alpine:", | ||
"type": "DOCKER", | ||
"state": "UNINSTALLED" | ||
}, | ||
{ | ||
"name": "kura", | ||
"version": "eclipse/kura:latest", | ||
"type": "DOCKER", | ||
"state": "INSTALLED" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...ua/service/device/management/inventory/model/container/DeviceInventoryContainerState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.service.device.management.inventory.model.container; | ||
|
||
/** | ||
* The {@link DeviceInventoryContainer} states. | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
public enum DeviceInventoryContainerState { | ||
|
||
/** | ||
* The container is running. | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
ACTIVE, | ||
|
||
/** | ||
* The container is starting | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
INSTALLED, | ||
|
||
/** | ||
* Tontainer has failed, or is stopped | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
UNINSTALLED, | ||
|
||
/** | ||
* The container state can not be determined | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
UNKNOWN, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.