Skip to content

Commit 48f9910

Browse files
author
diwakar
committed
- Fixed outstanding typo.
- Removed shade plugin and just pulished jar - Renamed ResourceModels to ResourceLifecycleSteps - Published version as 1.0.0 - Bumped to 1.0.4 for cloudformation-rpdk-java-plugin
1 parent 49aa7ae commit 48f9910

File tree

4 files changed

+9
-29
lines changed

4 files changed

+9
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sample for now this can be used for injecting credentials using the role based p
1919
...
2020
2121
~/.aws/config
22-
[profilei cfn-integration]
22+
[profile cfn-integration]
2323
role_arn = arn:aws:iam::<AWS_ACCOUNT_ID>:role/<ROLE_NAME>
2424
source_profile = cfn-assume-role
2525
```

pom.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,6 @@
118118
</compilerArgs>
119119
</configuration>
120120
</plugin>
121-
<plugin>
122-
<groupId>org.apache.maven.plugins</groupId>
123-
<artifactId>maven-shade-plugin</artifactId>
124-
<version>2.3</version>
125-
<configuration>
126-
<createDependencyReducedPom>false</createDependencyReducedPom>
127-
</configuration>
128-
<executions>
129-
<execution>
130-
<phase>package</phase>
131-
<goals>
132-
<goal>shade</goal>
133-
</goals>
134-
</execution>
135-
</executions>
136-
</plugin>
137121
<plugin>
138122
<groupId>org.apache.maven.plugins</groupId>
139123
<artifactId>maven-resources-plugin</artifactId>

src/main/java/software/amazon/cloudformation/test/CRUDLifecycleTestBase.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public ResourceModelT getModel() {
7070
@lombok.Getter
7171
@lombok.EqualsAndHashCode
7272
@lombok.ToString
73-
public final class ResourceModels {
73+
public final class ResourceLifecycleSteps {
7474
private final List<ModelStepExpectation> modelSteps;
7575
private final String group;
7676
private final Map<Action, HandlerInvoke<ResourceModelT, CallbackT>> invokers;
@@ -123,11 +123,11 @@ public Builder updateFail(Supplier<ResourceModelT> model) {
123123
Action.UPDATE, OperationStatus.FAILED, null, model));
124124
}
125125

126-
public ResourceModels delete(ResourceModelT model) {
126+
public ResourceLifecycleSteps delete(ResourceModelT model) {
127127
return delete(() -> model);
128128
}
129129

130-
public ResourceModels delete(Supplier<ResourceModelT> model) {
130+
public ResourceLifecycleSteps delete(Supplier<ResourceModelT> model) {
131131
return add(new ModelStepExpectation(
132132
Action.DELETE, OperationStatus.SUCCESS, null, model)).build();
133133
}
@@ -156,20 +156,20 @@ public Builder action(Action action, HandlerInvoke<ResourceModelT, CallbackT> in
156156
return this;
157157
}
158158

159-
public ResourceModels build() {
160-
return new ResourceModels(modelSteps, group, invokers);
159+
public ResourceLifecycleSteps build() {
160+
return new ResourceLifecycleSteps(modelSteps, group, invokers);
161161
}
162162
}
163163

164-
protected abstract List<ResourceModels> testSeed();
164+
protected abstract List<ResourceLifecycleSteps> testSeed();
165165

166166
protected abstract Map<Action, HandlerInvoke<ResourceModelT, CallbackT>> handlers();
167167

168168
protected abstract CallbackT context();
169169

170170
@TestFactory
171171
final List<DynamicTest> CRUD_Tests() {
172-
List<DynamicTest> tests_ = Objects.requireNonNull(testSeed()).stream()
172+
return Objects.requireNonNull(testSeed()).stream()
173173
.flatMap(models -> {
174174
final Map<Action, HandlerInvoke<ResourceModelT, CallbackT>> handlers = models.getInvokers();
175175
final List<ModelStepExpectation> expectations = models.getModelSteps();
@@ -262,7 +262,6 @@ final List<DynamicTest> CRUD_Tests() {
262262
}
263263
return tests.stream();
264264
}).collect(Collectors.toList());
265-
return tests_;
266265
}
267266

268267

src/main/java/software/amazon/cloudformation/test/KMSKeyEnabledServiceIntegrationTestBase.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@
3333
import software.amazon.cloudformation.proxy.CallChain;
3434
import software.amazon.cloudformation.proxy.DelayFactory;
3535
import software.amazon.cloudformation.proxy.ProgressEvent;
36-
import software.amazon.cloudformation.proxy.ProxyClient;
3736
import software.amazon.cloudformation.proxy.StdCallbackContext;
3837
import software.amazon.cloudformation.proxy.delay.Constant;
3938

4039
import java.time.Duration;
41-
import java.util.Map;
42-
import java.util.function.Function;
4340
import java.util.function.Predicate;
4441

4542
/**
@@ -194,7 +191,7 @@ protected String getKmsKeyId() {
194191
void describeAndEnableKey() {
195192
//
196193
// We need to account for KMS propagation delays. So each step stabilizes returns true
197-
// when 4 consecutive attempts to describe and check succeeds to reliably converge.
194+
// when 6 consecutive attempts to describe and check succeeds to reliably converge.
198195
//
199196
final String trackingKeyName = "describeAndEnableKey";
200197
final DescribeKeyRequest describeKeyRequest = DescribeKeyRequest.builder().keyId(kmsKeyId).build();

0 commit comments

Comments
 (0)