gbv / app-paia Goto Github PK
View Code? Open in Web Editor NEWPatrons Account Information API command line client
Home Page: https://metacpan.org/release/App-PAIA
License: Other
Patrons Account Information API command line client
Home Page: https://metacpan.org/release/App-PAIA
License: Other
Changing a base/core/auth URL does not work if a session file exists because the URL is taken from the session file.
See the full documentation at https://wiki.debian.org/Teams/DebianPerlGroup and http://pkg-perl.alioth.debian.org/git.html
Maybe dh-dist-zilla can also be of use.
Right now this does not work as expected because the second call uses the first session:
paia login -u user1 -p xyz
paia patron -u user2 -p xyz
expected result should be same as
paia login -u user1 -p xyz
paia login -u user2 -p xyz
paia patron
The manifying process fails with the latest Pod-Simple (3.28). I think this is due to double "=encoding" directives in the .pm files. See also https://rt.cpan.org/Ticket/Display.html?id=91757
Probably it's best to remove the duplicate =encoding directives.
Regards, Slaven
See http://gbv.github.io/paia/paia.html#revision-history for changes of PAIA specification.
The client should provide a global option to select a PAIA specification e.g. --spec 1.2
to use application/x-www-form-urlencoded
for PAIA auth.
This may die if stdout_json returns null:
PAIA "patron";
is stdout_json->{status}, 0, "Benutzer ist nicht gesperrt";
PAIA "items";
ok !error, "Benutzer kann sein Konto ansehen";
ok stdout_json->{doc}->{item}, "Benutzerkonto hat mindestesist ein Exemplar";
done_paia_test;
better:
PAIA "patron";
is stdout_json('status'), 0, "Benutzer ist nicht gesperrt";
PAIA "items";
ok !error, "Benutzer kann sein Konto ansehen";
ok stdout_json("doc.item"), "Benutzerkonto hat mindestens ein Exemplar";
done_paia_test;
maybe -a
, enabled by default.
Is this intended? Which values should be more important? Documentation may better describe this. At least command line arguments should have precedence over session file options.
To catch errors
The response of PAIA core items is not printed to STDOUT.
the app should exit with a non-zero exit code if a PAIA command did not finish with success.
Subtest output is not properly intended:
# Subtest: Erster Nutzer
# paia login -u xxx -p yyy
# paia patron
ok 1 - patron status 2: inactive because account expired
1..1
ok 1 - Erster Nutzer
should be
# Subtest: Dritter Nutzer
# paia login -u xxx -p yyy
# paia patron
ok 1 - patron status 2: inactive because account expired
1..1
ok 1 - Erster Nutzer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.