Code Monkey home page Code Monkey logo

nva-cristin-service's Introduction

nva-cristin-service

Service for fetching data from the Cristin API

Building locally

We need to add some test tag exclusions since the tagged tests are only used for integration testing on deployed instances.

Windows

gradlew build -x karateTest -x createTestUsers -x deleteTestUsers

Linux

./gradlew build -x karateTest -x createTestUsers -x deleteTestUsers

Running karate tests

Karate tests are designed to be run in AWS via Github Actions. This requires a token that can only be obtained when it is deployed as an AWS Cloudformation stack.

You can run the integration tests locally in your IDE by running the feature files directly for each scenario or each feature. If you have feature files that depend on a token, you can comment out token generation code and add your own token to the token variable.

Running it locally also needs an override of the environment variables, pointing to an existing stack in AWS. That means we are running the tests locally against an already deployed AWS stack

Example environment variables override in IntelliJ

In Edit Configuration -> Environment Variables :

DOMAIN_NAME=api.dev.nva.aws.unit.no;BASE_PATH=cristin

AWS Stack

For karate tests we need an existing stack or use the dev stack from the regular pipeline. If we want to test changes before they are in main stack, we have to deploy the stack manually. We can either wait for a failing Github Karate Action and run tests against that stack, or deploy a stack manually.

OpenApi

NVA Developer Portal

Or most recent in docs/cristin-proxy-swagger.yaml

Swagger Editor

nva-cristin-service's People

Contributors

anetteolli avatar axthosarouris avatar brinxmat avatar dependabot-preview[bot] avatar janbj avatar ketilaa avatar nraanes avatar ranjithtom avatar sondrev avatar stignorland avatar svenng avatar svenngjeto avatar tkardu avatar torarnet avatar torbjokv avatar truhacevkir avatar

Watchers

 avatar  avatar  avatar  avatar

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.