Git Product home page Git Product logo

app-paia's People

Contributors

nichtich avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

neilb

app-paia's Issues

exit code on failure

the app should exit with a non-zero exit code if a PAIA command did not finish with success.

Ignore session file on login

Changing a base/core/auth URL does not work if a session file exists because the URL is taken from the session file.

App::PAIA::Tester subtests

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

Safe json element test

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;

Option --user and --password should always trigger login

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.