The logicalResourceIdentifier property in create/update/delete actions in contract tests has an inconsistent value

オープン
#1,008 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, python

調査の方向性

まず、この Python リポジトリでの contract-test リクエスト生成箇所を特定し、create、update、delete で生成される logicalResourceIdentifier の値を比較します。ログに記録されたリクエストを再現し、そのうえで、コールバックコンテキストなしで識別子が英数字のみであり、アクション間で一貫していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Hello,

cfn 0.2.32

During contract tests, the value for the logicalResourceIdentifier property is inconsistent between crate/update/delete actions for each test. The value is also not an alphanumeric value, which is expected based on the documentation. The value appears to be a uuid. Resource types that process the value experience undefined behavior during contract tests, but function properly after submission.

Example extracted from rpdk.log (not request although values are consistent)

CREATE
{ "callbackContext": null, "action": "CREATE", "requestData": { "resourceProperties": { "PropOne": "ValueOne", "PropTwo": "ValueTwo" }, "previousResourceProperties": null, "logicalResourceId": "48d73540-cc12-4908-9b49-eb3f81659ef6" }, "region": "us-west-1", "awsAccountId": "123456789012", "bearerToken": "48d73540-cc12-4908-9b49-eb3f81659ef6" }

DELETE
{ "callbackContext": null, "action": "DELETE", "requestData": { "resourceProperties": { "PropOne": "ValueOne", "PropTwo": "ValueTwo" }, "previousResourceProperties": null, "logicalResourceId": "224ccfe1-db5a-4bca-a956-46207d44b1d8" }, "region": "us-west-1", "awsAccountId": "123456789012", "bearerToken": "224ccfe1-db5a-4bca-a956-46207d44b1d8" }

The value also doesn't meet the constraints:

Logical ID
The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template.

An invocation with a callback context for each action (create/update/delete) does have a consistent value.

主要言語
Python
スター
336
フォーク
173
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws-cloudformation/cloudformation-cli のほかの issue

aws-cloudformation/cloudformation-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。