Skip to content

States.Hash with a Hash object does not produce the same hash value as stepfunctions simulator #271

Open
@Fryguy

Description

There is a pending spec demonstrating this issue:

  • it "with a hash (matching the stepfunctions simulator)" do
    pending "TODO: figure out how the stepfunctions simulator serializes hashes"
    result = described_class.value("States.Hash($.data, 'SHA-1')", {}, {"data" => {"foo" => "bar"}})
    expect(result).to eq("dc2935b70ad43836e2e74df2d9758b1e51397997")
    end

The fundamental problem is we don't know how the step functions simulator is serializing a JSON object such that they produce that hash value. Even so, this should only affect possible integrations between floe and amazon step functions, which is an unlikely combination.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions