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

Offen
#1,008 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
aws, python
Bereich
devtools, testing-qa

Rechercherichtung

Beginne damit, die Generierung von contract-test-Anfragen in diesem Python-Repository zu lokalisieren und vergleiche die für create, update und delete erzeugten logicalResourceIdentifier-Werte. Reproduziere die protokollierten Anfragen und überprüfe anschließend, dass die Identifikatoren alphanumerisch und über alle Aktionen hinweg ohne Callback-Kontext konsistent sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
336
Forks
173
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus aws-cloudformation/cloudformation-cli

Alle Issues in aws-cloudformation/cloudformation-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.