GithubHelp home page GithubHelp logo

amsterdam / search_tests Goto Github PK

View Code? Open in Web Editor NEW
0.0 27.0 1.0 93 KB

Search Tests op de HELE dataset.

License: Mozilla Public License 2.0

Shell 7.57% Python 90.42% Dockerfile 2.01%
team-datadiensten

search_tests's Introduction

Atlas_search_tests

Search Tests op de HELE elastic dataset. Search Regressie vangnet

Nieuwe 'zoek features' gedragen zich vaak anders op de hele dataset. Ook het toevoegen van nieuwe datasets kan bestaande zoek resultaten vervuilen.

Het project bevat twee soorten tests:

  1. Tests gebaseerd op pyresttest
  2. Tests gebaseerd op een Google Sheet, ook bekend als de "Rob tests".

Install

  • mkvirtualenv search_test
  • pip install -r requirements.txt

Runtests

resttest.py https://acc.api.data.amsterdam.nl smoke_test.yml

Specific test for atlas client created by rob m and rob k.

To test against acceptance we need JWKS keysest for acceptance. Find authz_keyset_acc in ansible vault and set in the PUB_JWKS env var (without {% raw %} like :

export PUB_JWKS='
{
            "keys": [
                {
                    "kty": "EC",
                    "key_ops": [
                        "verify",
                        "sign"
                    ],
                    "kid": "2aedafba-8170-4064-b704-ce92b7c89cc6",
                    "crv": "P-256",
                    "x": "6r8PYwqfZbq_QzoMA4tzJJsYUIIXdeyPA27qTgEJCDw=",
                    "y": "Cf2clfAfFuuCB06NMfIat9ultkMyrMQO9Hd2H7O9ZVE=",
                    "d": "N1vu0UQUp0vLfaNeM0EDbl4quvvL6m_ltjoAXXzkI3U="
                }
            ]
        }
'

The you can run :

python robs_tests.py https://acc.api.data.amsterdam.nl

Docker environment

Include the OAuth credentials in the docker-compose.yml file:

  • OIDC_CLIENT_ID
  • OIDC_CLIENT_SECRET
  • OIDC_TOKEN_ENDPOINT

Either run the test directly or use the run script. Directly run test using:

docker-compose build
docker-compose run smoketest resttest.py https://acc.api.data.amsterdam.nl smoke_test.yml 

Use the run script as follows:

URL=https://acc.api.data.amsterdam.nl ./run_tests.sh

search_tests's People

Contributors

bheupers avatar dependabot[bot] avatar dolhuis avatar ichnograph avatar kelpas avatar ngaranko avatar obdeijn avatar publysher avatar ronvanbarneveld avatar rrmoelker avatar spreeker avatar vdboor avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

obdeijn

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.