Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 4e4a595

Browse files
committed
Fix a bug in containsRestApiAccountWithCloudWatchRoleArn
could not find `AWS::ApiGateway::Account` because `stringLikeRegexp` was not use to match the CloudWatchRoleArn Signed-off-by: muhamadto <[email protected]>
1 parent 074c6d9 commit 4e4a595

20 files changed

+30
-71
lines changed

.github/workflows/build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
# http://www.apache.org/licenses/LICENSE-2.0
7-
8-
# See the NOTICE file distributed with this work for additional information regarding copyright ownership.
9-
7+
#
108
# Unless required by applicable law or agreed to in writing, software
119
# distributed under the License is distributed on an "AS IS" BASIS,
1210
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

.github/workflows/codeql-analysis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
# http://www.apache.org/licenses/LICENSE-2.0
7-
8-
# See the NOTICE file distributed with this work for additional information regarding copyright ownership.
9-
7+
#
108
# Unless required by applicable law or agreed to in writing, software
119
# distributed under the License is distributed on an "AS IS" BASIS,
1210
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

.github/workflows/release.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
## Licensed to Muhammad Hamadto
2-
#
3-
## Licensed under the Apache License, Version 2.0 (the "License");
4-
## you may not use this file except in compliance with the License.
5-
## You may obtain a copy of the License at
6-
## http://www.apache.org/licenses/LICENSE-2.0
7-
#
8-
## See the NOTICE file distributed with this work for additional information regarding copyright ownership.
1+
# Licensed to Muhammad Hamadto
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
97
#
10-
## Unless required by applicable law or agreed to in writing, software
11-
## distributed under the License is distributed on an "AS IS" BASIS,
12-
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
## See the License for the specific language governing permissions and
14-
## limitations under the License.
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
1513

1614

1715
name: Publish package to GitHub Packages

.mvn/wrapper/maven-wrapper.properties

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# You may obtain a copy of the License at
77
# http://www.apache.org/licenses/LICENSE-2.0
88
#
9-
# See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
#
119
# Unless required by applicable law or agreed to in writing, software
1210
# distributed under the License is distributed on an "AS IS" BASIS,
1311
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

LICENSE

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Licensed to Muhammad Hamadto
55
You may obtain a copy of the License at
66
http://www.apache.org/licenses/LICENSE-2.0
77

8-
See the NOTICE file distributed with this work for additional information regarding copyright ownership.
9-
108
Unless required by applicable law or agreed to in writing, software
119
distributed under the License is distributed on an "AS IS" BASIS,
1210
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

mvnw

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
# You may obtain a copy of the License at
88
# http://www.apache.org/licenses/LICENSE-2.0
99
#
10-
# See the NOTICE file distributed with this work for additional information regarding copyright ownership.
11-
#
1210
# Unless required by applicable law or agreed to in writing, software
1311
# distributed under the License is distributed on an "AS IS" BASIS,
1412
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

pom.xml

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
~ You may obtain a copy of the License at
88
~ http://www.apache.org/licenses/LICENSE-2.0
99
~
10-
~ See the NOTICE file distributed with this work for additional information regarding copyright ownership.
11-
~
1210
~ Unless required by applicable law or agreed to in writing, software
1311
~ distributed under the License is distributed on an "AS IS" BASIS,
1412
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -25,7 +23,7 @@
2523
<groupId>cloud.pianola</groupId>
2624
<artifactId>cdk-fluent-assertions</artifactId>
2725
<name>CDK Fluent Assertions</name>
28-
<version>1.0.0</version>
26+
<version>1.0.1</version>
2927
<packaging>jar</packaging>
3028
<description>AssertJ-like fluent assertions for AWS CDK testing</description>
3129
<url>https://github.com/muhamadto/cdk-fluent-assertions</url>
@@ -183,9 +181,6 @@
183181
You may obtain a copy of the License at
184182
https://www.apache.org/licenses/LICENSE-2.0
185183

186-
See the NOTICE file distributed with this work for additional information regarding
187-
copyright ownership.
188-
189184
Unless required by applicable law or agreed to in writing, software
190185
distributed under the License is distributed on an "AS IS" BASIS,
191186
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/CDKStackAssert.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -120,7 +118,9 @@ public RestApiAccountAssert containsRestApiAccountWithCloudWatchRoleArn(
120118

121119
final Map<String, Map<String, Object>> properties = Map.of(
122120
"Properties", Map.of(
123-
"CloudWatchRoleArn", Map.of("Fn::GetAtt", List.of(cloudWatchRoleArn, "Arn"))
121+
"CloudWatchRoleArn", Map.of(
122+
"Fn::GetAtt", List.of(stringLikeRegexp(cloudWatchRoleArn), "Arn")
123+
)
124124
)
125125
);
126126

src/main/java/cloud/pianola/cdk/fluent/assertion/CdkResourceType.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/LambdaAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/LambdaEventInvokeConfigAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/LambdaPermissionAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/PolicyAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/QueueAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/QueuePolicyAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/RestApiAccountAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/RestApiAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/RoleAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/TopicAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/cloud/pianola/cdk/fluent/assertion/TopicSubscriptionAssert.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10-
*
8+
*
119
* Unless required by applicable law or agreed to in writing, software
1210
* distributed under the License is distributed on an "AS IS" BASIS,
1311
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

0 commit comments

Comments
 (0)