Skip to content

Commit

Permalink
Merge pull request #26 from xiao201208/fix/iact3_generate_param_timeoyt
Browse files Browse the repository at this point in the history
fix zoneId
  • Loading branch information
xiao201208 authored Oct 31, 2023
2 parents 6a0ee15 + 7fb3125 commit 1eb9654
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 2 deletions.
1 change: 0 additions & 1 deletion iact3/cli_modules/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ async def params(template: str = None,
regions=regions
)
Test._get_parameters(tests)


@staticmethod
def _get_parameters(tests: StackTest):
Expand Down
2 changes: 1 addition & 1 deletion iact3/generate_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def resolve_auto_value(self):
resolved_parameters[key] = original_value
continue

if self.RE_V_AUTO.fullmatch(original_value) or self.RE_K_ZONE_ID.fullmatch(key):
if self.RE_V_AUTO.fullmatch(original_value):
resolved_parameters[key] = None
linked_list.append(key, original_value, parameters=resolved_parameters)
elif self.RE_V_CURRENT_REGION.fullmatch(original_value):
Expand Down
22 changes: 22 additions & 0 deletions iact3_outputs/iact3-default-cn-hangzhou-eac0248e-cn-hangzhou.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----------------------------------------------------------------------------
Region: cn-hangzhou
StackName: iact3-default-cn-hangzhou-eac0248e
StackId:
*****************************************************************************
TestedResult: Failed
ResultReason:
Iact3Exception, can not find any available value for DBInstanceClass in cn-hangzhou
region in [] for default
*****************************************************************************
*****************************************************************************
Events:

*****************************************************************************
*****************************************************************************
Resources:

*****************************************************************************
-----------------------------------------------------------------------------
Tested on: Tuesday, 31. October 2023 10:46AM
-----------------------------------------------------------------------------

261 changes: 261 additions & 0 deletions iact3_outputs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<style type="text/css">/*** author: Tony Vattathil [email protected] ***/
/*** license: Apache 2.0 ***/

@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100);
@import url(https://fonts.googleapis.com/css?family=Comfortaa:700);
html {} body {
background-color: #ecf0f1;
font-family: "Roboto", helvetica, arial, sans-serif;
font-size: 12px;
font-weight: 200;
text-rendering: optimizeLegibility;
margin: 0;
padding: 1px;
}
div.iact3-logo {
display: block;
margin: auto;
width: 100%;
border: 0;
padding: 0px;
}
div.table-title {
background: #ecf0f1;
display: block;
margin: auto;
max-width: 100%;
width: 100%;
}
div.header-table-fill {
display: block;
margin: 0;
max-width: 100%;
}
.iact3-logo h3 {
color: orange;
font-size: 35px;
margin: 0;
width: 100%;
text-align: right;
font-family: Comfortaa;
text-shadow: #ffffff 0px 1px 1px;
}
.test-info h3 {
color: #3498db;
font-size: 15px;
margin: 0;
width: 100%;
text-align: center;
font-family: Comfortaa;
text-shadow: #ffffff 0px 0px 0px;
}

.test-footer td {
background-color: #ecf0f1;
padding: 4px;
margin: auto;
width: 100%;
border-top: 2px solid #3498db;
}
.test-footer h3 {
background-color: #ecf0f1;
padding: 2px;
margin: auto;
width: 100%;
border-top: 1px solid black;
}
.iact3-logo td {
padding: 0px;
margin: auto;
width: 100%;
padding: 5px;
}
.table-title h3 {
font-size: 20px;
font-weight: 400;
font-style: normal;
font-family: "Roboto", helvetica, arial, sans-serif;
}
.header-table-fill {
border-radius: 3px;
border-collapse: collapse;
margin: auto;
max-width: 100%;
padding: 0px;
width: 100%;
}
.header-table-fill th {
background: #ecf0f1;
border-bottom: 4px solid #3498db;
margin: auto;
width: 100%;
padding: 5px;
}
.header-table-fill tr {
border: 0;
border-right: none;
}
.header-table-fill td {
color: #933333;
font-size: 14px;
border: 0;
}
.table-fill {
background: white;
border-radius: 3px;
border-collapse: collapse;
margin: auto;
max-width: 98%;
width: 100%;
box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}
a {
text-decoration: none;
}
th {
color: #D5DDE5;
background: #1b1e24;
border-bottom: 4px solid #9ea7af;
border-right: 1px solid #343a45;
font-size: 12px;
font-weight: 100;
padding: 8px;
text-align: left;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
vertical-align: middle;
}
th:first-child {
border-top-left-radius: 3px;
}
th:last-child {
border-top-right-radius: 3px;
border-right: none;
}
tr {
border-top: 1px solid #C1C3D1;
border-bottom: 1px solid #C1C3D1;
color: #666B85;
font-size: 16px;
font-weight: normal;
text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}
tr:first-child {
border-top: none;
}
tr:last-child {
border-bottom: none;
}
tr:last-child td:first-child {
border-bottom-left-radius: 3px;
}
tr:last-child td:last-child {
border-bottom-right-radius: 3px;
}
td {
background: #ffffff;
padding: 12px;
text-align: left;
vertical-align: middle;
font-weight: 300;
font-size: 12px;
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
border-right: 1px solid #C1C3D1;
}
td.test-green {
text-align: center;
background-color: #98FF98;
}
td.test-red {
text-align: center;
background-color: #FCB3BC;
}
td:last-child {
border-right: 0px;
}
th.text-left {
text-align: left;
}
th.text-center {
text-align: center;
}
th.text-right {
text-align: right;
}
td.text-left {
text-align: left;
}
td.text-center {
text-align: center;
}
td.text-right {
text-align: right;
}</style>
<title>
Iact3 Report
</title>
</head>
<body>
<table class=header-table-fill>
<tbody>
<th colspan=2>
<tr>
<td>
Tested on: Tuesday - Oct,31,2023 @ 10:46:59
</td>
</tr>
</th>
</tbody>
</table>
</body>
<p />
<table class=table-fill>
<tbody>
<thread>
<tr>
<th class=text-center width=25%>
Test Name
</th>
<th class=text-left width=10%>
Tested Region
</th>
<th class=text-left width=30%>
Stack Name
</th>
<th class=text-left width=20%>
Tested Results
</th>
<th class=text-left width=15%>
Test Logs
</th>
<tr class= test-footer>
<td colspan=5></td>
</tr>
<tr>
<td class=test-info>
<h3>
default
</h3>
</td>
<td class=text-left>
cn-hangzhou
</td>
<td class=text-left>
iact3-default-cn-hangzhou-eac0248e
</td>
<td class=test-red>
Iact3Exception
</td>
<td class=text-left>
<a href="iact3-default-cn-hangzhou-eac0248e-cn-hangzhou.txt">
View Logs
</a>
</td>
</tr>
</tr>
<p />
</thread>
</tbody>
</table>
1 change: 1 addition & 0 deletions iact3_outputs/test-failed-cost-result.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Result": "Failed", "Details": [{"TestName": "default", "TestedRegion": "cn-hangzhou", "StackName": "iact3-default-cn-hangzhou-eac0248e", "TestResult": "Iact3Exception", "TestLog": "iact3-default-cn-hangzhou-eac0248e-cn-hangzhou.txt", "Result": "Failed"}]}
10 changes: 10 additions & 0 deletions tests/data/timeout_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project:
name: test-failed-cost
regions:
- cn-hangzhou
tests:
default:
parameters:
ZoneId: not-exist
DBInstanceClass: $[iact3-auto]
DBPassword: $[iact3-auto]

0 comments on commit 1eb9654

Please sign in to comment.