Vanitha Annamalai
01/12/2023, 5:29 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Vanitha Annamalai
01/12/2023, 9:06 AMSrijan Choudhary
06/28/2023, 3:46 AMMatt Glover
06/28/2023, 12:24 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt Glover
06/28/2023, 12:31 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
#pact-beam
would cover both Erlang and Elixir?Matt Glover
06/28/2023, 12:32 PMMatt Glover
06/28/2023, 12:32 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Srijan Choudhary
06/28/2023, 2:40 PMMatt (pactflow.io / pact-js / pact-go)
Srijan Choudhary
06/29/2023, 12:30 PMSrijan Choudhary
08/15/2023, 6:26 AMPactRef = pact:v4(<<"myapp">>, <<"animal_service">>),
AnimalObject = #{<<"name">> => <<"Mary">>, <<"type">> => <<"alligator">>},
{ok, Port} = pact:interaction(PactRef,
#{
given => <<"an alligator with the name Mary exists">>,
upon_receiving => <<"a request to GET an animal: Mary">>,
with_request => #{
method => <<"GET">>,
path => <<"/animals/Mary">>
},
will_respond_with => #{
status => 200,
headers => #{
<<"Content-Type">> => <<"application/json">>
},
body => thoas:encode(AnimalObject)
}
}),
?assertMatch({ok, AnimalObject}, animal_service_interface:get_animal(Port, "Mary")),
{ok, matched} = pact:verify(PactRef),
pact:write(PactRef, <<"./pacts">>),
pact:cleanup(PactRef).
Lewis Cowles
12/20/2023, 10:35 AMJustin Wood
03/13/2024, 2:20 PMJustin Wood
03/13/2024, 5:32 PM(pact_erlang 0.2.2) :pactffi_nif.given(65537, %{params: %{foo: "bar"}, state: "foo"})
I have those actual values in the given expression. I am getting an argument error. That map would be #{params => #{foo => <<"bar">>}, state => <<"foo">>}
in Erlang.
Any help here would be appreciated.Justin Wood
03/13/2024, 5:33 PMJustin Wood
03/13/2024, 5:35 PMJustin Wood
03/13/2024, 5:46 PMJustin Wood
03/13/2024, 7:52 PMJustin Wood
03/22/2024, 7:25 PMJustin Wood
04/25/2024, 1:30 AM:pact_verifier
module to verify my pacts. But I can't seem to get it to work. I have tried following the test code as closely as possible, but I am getting the following error.
escript: exception error: no match of right hand side value {error,bad_directory}
in function erl_eval:expr/6 (erl_eval.erl, line 498)
in call from escript:eval_exprs/5 (escript.erl, line 869)
in call from erl_eval:local_func/8 (erl_eval.erl, line 646)
in call from escript:interpret/4 (escript.erl, line 780)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
escript: exception error: no match of right hand side value {error,bad_directory}
in function erl_eval:expr/6 (erl_eval.erl, line 498)
in call from escript:eval_exprs/5 (escript.erl, line 869)
in call from erl_eval:local_func/8 (erl_eval.erl, line 646)
in call from escript:interpret/4 (escript.erl, line 780)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
I can't seem to figure out what is going wrong with this one.