After some help from Bill Erickson in IRC, i.e. figuring out that I needed to run only ORDERS through the test and that newlines needed to be stripped from the JEDI, it is working for me.
If you want to pull jedi from the database to test, something like the following works:
psql -t --no-align -c "select jedi from acq.edi_message where id = ?" | tr -d '\n' > jedi_file
Replace ? with the id of an ORDERS message from the table.
After some help from Bill Erickson in IRC, i.e. figuring out that I needed to run only ORDERS through the test and that newlines needed to be stripped from the JEDI, it is working for me.
If you want to pull jedi from the database to test, something like the following works:
psql -t --no-align -c "select jedi from acq.edi_message where id = ?" | tr -d '\n' > jedi_file
Replace ? with the id of an ORDERS message from the table.