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

Employ kotnetcli test server in travis CI script #107

Open
jovanbulck opened this issue Apr 23, 2016 · 1 comment
Open

Employ kotnetcli test server in travis CI script #107

jovanbulck opened this issue Apr 23, 2016 · 1 comment
Assignees
Labels

Comments

@jovanbulck
Copy link
Collaborator

jovanbulck commented Apr 23, 2016

Travis continuous integration script should use a kotnetcli test server to automatically test kotnetcli functionality on each commit. We can proceed as follows:

  1. Running a kotnetcli test server (on localhost or permanently available remote test server) with a known dummy database.
  2. Writing a simple shell script that takes advantage of the known dummy database to invoke kotnetcli with all possible outcomes, looping over all possible communicators. The shell script should verify kotnetcli's return code accordingly (see issue All ideas for numbering the error codes are welcome here. #55 ).
    • non-existing user
    • correct user, wrong password
    • correct user, invalid institution
    • correct user, max ip
    • kotnetcli server offline (in 'Kotnetverbinding testen' step)
  3. We can furthermore extend our test server to yield the following two cases (e.g. when trying to log in with a specific dummy username or institution reserved for that purpose):
    • kotnetcli server internal error
    • kotnetcli server unkown rc code
    • kotnetcli server connection timeout (in 'Gegevens opsturen' or 'Gegevens verwerken' steps)
@jovanbulck jovanbulck added this to the 2.0.0: 'Barndominium' milestone Apr 23, 2016
@jovanbulck jovanbulck self-assigned this Apr 23, 2016
@GijsTimmers
Copy link
Owner

Agreed, very nice idea, go ahead as you please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants