-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deployment): add required capabilities feature (#924)
- Loading branch information
1 parent
3b1cab6
commit 306c09e
Showing
12 changed files
with
214 additions
and
37 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
18 changes: 18 additions & 0 deletions
18
...ces/com/aws/greengrass/integrationtests/deployment/FleetConfigWithRequiredCapability.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,18 @@ | ||
{ | ||
"configurationArn": "Test", | ||
"requiredCapabilities": ["LARGE_CONFIGURATION", "ANOTHER_CAPABILITY"], | ||
"components": { | ||
"RedSignal": { | ||
"version": "1.0.0" | ||
} | ||
}, | ||
"creationTimestamp": 1601276785085, | ||
"failureHandlingPolicy": "ROLLBACK", | ||
"componentUpdatePolicy": { | ||
"timeout": 60, | ||
"action": "NOTIFY_COMPONENTS" | ||
}, | ||
"configurationValidationPolicy": { | ||
"timeout": 60 | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...n/java/com/aws/greengrass/deployment/exceptions/MissingRequiredCapabilitiesException.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,15 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.aws.greengrass.deployment.exceptions; | ||
|
||
public class MissingRequiredCapabilitiesException extends DeploymentException { | ||
|
||
static final long serialVersionUID = -3387516993124229948L; | ||
|
||
public MissingRequiredCapabilitiesException(String message) { | ||
super(message); | ||
} | ||
} |
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.