Code Monkey home page Code Monkey logo

fmoj's Introduction

CREATIVE COMMONS LICENSE

Preliminaries

This task is an actual task we might perform, yes it is banal, but it is relatively important to avoid GIGO situations since we work with diverse sources.

We will work together.

We are less interested in solving the entire problem, and more interested in seeing how you reason about code and work with us.

This goes both ways, take the time to reflect on how we work and reflect on our practices.

We do TDD all the time, so we will do TDD now. Since we're doing TDD, the code QA settings are quite high.

Task summary

Create an API for Creative Commons License URIs.

Definitions

License

A legal document that defines rights and restrictions related to the use of a thing.

For us, a license is ALWAYS represented by a URI in the format:

   http(s)://creativecommons.org/licenses/{license-code}/{version}

Task 1

  When a CreativeCommonsLicense is created with any URI
  Then the URI can be retrieved

Task 2

  Given a CreativeCommonsLicense created with an HTTP scheme
  When the URI is retrieved
  Then the URI has an HTTPS scheme

Task 3

Background information: License details

Questions:

  • how would you approach testing this?
  • how are we validating?
  • when are we validating?
  • where and when do we manage failures?
  • what is a validation response?

Note that the v1.0 BY-ND-NC is anomalous (but the NC-ND URI actually resolves…with a 303 response)

  Given a CreativeCommonsLicense created with a URI
  When the license is validated
  Then a validation response is received

Task 4

  Given a CreativeCommonsLicense created with the URI https://creativecommons.org/publicdomain/zero/1.0
  When the URI is validated
  Then the URI is considered valid

fmoj's People

Contributors

brinxmat avatar

Watchers

Roy Sindre Norangshol avatar  avatar Daniel Sachse 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.