Giter Site home page Giter Site logo

dipak-pawar / fabric8-tenant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabric8-services/fabric8-tenant

0.0 1.0 0.0 752 KB

Service responsible for provisioning and updating the tenant scoped services

License: Apache License 2.0

Go 84.87% Makefile 13.03% Ruby 0.19% Shell 1.91%

fabric8-tenant's Introduction

Fabric8 Tenant Service

Jenkins Go Report Card GoDoc Codecov.io

Service for initializing and updating the tenant services in fabric8/openshift.io

The YAML for the tenant services is defined in the following projects:

Testing YAML

When a PR is made on one of the above YAML repos you can test in production in your tenant via the following:

  • http://openshift.io/ and login

  • go to your Profile page (click the top right drop down and select Profile)

  • add /_tenant to your browsers address bar - so you will be looking at a URL like https://openshift.io/my-user-name/_tenant

  • enter the sha of the latest commit in your PR as a templates repository blob

  • click Update Profile

  • now Update Tenant - you’re tenant should now be running the PR

To go back to using the default YAML:

Development

Prerequisites

  • git

  • make

  • go (tested with go 1.10.2)

How to build

Get the project:

$ git clone https://github.com/fabric8-services/fabric8-tenant $GOPATH/src/github.com/fabric8-services/fabric8-tenant
$ cd $GOPATH/src/github.com/fabric8-services/fabric8-tenant

Build the project:

$ make

Run unit tests

Clean and generate objects (to have the latest version of the generated files in case of any changes since the last run):

$ make clean && make generate

Check any dependency changes:

$ make deps

Run tests (without code coverage):

$ make test-unit-no-coverage

Run integration tests

You can do the same clean, generate and fetch the dependencies as it is suggested for unit tests:

$ make clean && make generate && make deps

Integration tests need to have a DB running. To use that we need to use a docker image for the build. For now just start it:

$ make docker-start

And start the DB:

$ make integration-test-env-prepare

Run all integration tests inside of the docker container (without code coverage):

$ make docker-test-migration && make docker-test-integration-no-coverage && make docker-test-remote-no-coverage

To stop containers:

$ make integration-test-env-tear-down
$ make docker-rm

Code formatting

To check if the code is properly formatted run:

$ make check-go-format

To format the code:

$ make format-go-code

fabric8-tenant's People

Contributors

fabric8cd avatar aslakknutsen avatar jstrachan avatar rawlingsj avatar xcoulon avatar davidfestal avatar matousjobanek avatar vpavlin avatar rupalibehera avatar chmouel avatar surajssd avatar kbsingh avatar nurali-techie avatar l0rd avatar jmelis avatar alexeykazakov avatar fche avatar ibuziuk avatar jaseemabid avatar kwk avatar sbose78 avatar stooke avatar

Watchers

James Cloos 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.