Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fryguy opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Fryguy
Copy link
Member

Fryguy commented Aug 22, 2024

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.

@Fryguy Fryguy added bug Something isn't working help wanted Extra attention is needed labels Aug 22, 2024
@Fryguy Fryguy changed the title States.Hash with a Hash object does not produce the same hash value as ASL States.Hash with a Hash object does not produce the same hash value as stepfunctions simulator Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant