GithubHelp home page GithubHelp logo

Get Package file from SP about son-tests HOT 5 CLOSED

sonata-nfv avatar sonata-nfv commented on September 26, 2024
Get Package file from SP

from son-tests.

Comments (5)

jbonnet avatar jbonnet commented on September 26, 2024

@dang03
The Gatekeeper is ready, but there are still compromises with the Catalogues I'd like to see removed, like:

  1. the package file name: why filename.son? I know we've discussed this sometime ago... what have I forgotten?
  2. HTTP header application/json should return a JSON description of the package file, while application/zip should return the file, for the .../catalogue/son-packages/:uuid, no? Both calls are currently returning binary data
  3. from the GK API's point of view, the call to get the file is .../packages/:uuid/download, i.e., there's no 'special' (like in son-pakages`) endpoint for downloading files

from son-tests.

dang03 avatar dang03 commented on September 26, 2024

@jbonnet
Addressing your points:

  1. The package file is indeed a zip file, however, long time ago it was stated (I don't remember well) that SONATA packages would use .son extension. No problem in this, the Catalogue support any kind of file extension, as long as you provide a filename.

  2. This was a bug. Now, with the last son-catalogue-repos commit (still pending to merge) you will be able to get the package file meta-data using application/json header or the package file itself using application/zip header for the .../catalogues/api/v2/son-packages/:uuid.
    Note: This only works on API v2!! .../catalogues/api/v2/...

  3. That's fine to have one API dedicated to Packages (descriptors and files) in the GK. However in the Catalogue it is managed separately as a descriptor and a file are stored in different "catalogues", so different APIs.

from son-tests.

jbonnet avatar jbonnet commented on September 26, 2024

from son-tests.

jbonnet avatar jbonnet commented on September 26, 2024

from son-tests.

dang03 avatar dang03 commented on September 26, 2024

@jbonnet
The integration test for the package download Jenkins <-> GK <-> Catalogue is now enabled and working correctly.

from son-tests.

Related Issues (20)

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.