Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring index CI to a more modular approach. #582

Merged
merged 12 commits into from
Jun 22, 2018

Conversation

mohammedzee1000
Copy link
Collaborator

@mohammedzee1000 mohammedzee1000 commented Jun 11, 2018

This is the first PR in a series to solve #583.
It aims to achieve the first 2 goals listed in the issue.

@mohammedzee1000
Copy link
Collaborator Author

#dotests

@mohammedzee1000
Copy link
Collaborator Author

Sample output so far with test index:

In [1]: from ci.container_index.engine import Engine

In [2]: e = Engine(index_location="../test_index")

In [3]: a, b = e.run()

In [4]: a
Out[4]: False

In [5]: for k, v in b.iteritems():
   ...:     for i in v:
   ...:         print i.title
   ...:         print i.data
   ...:         print i.errors
   ...:         print i.success
   ...:         
Top level projects
{'Projects': [{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}, {'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}, {'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}]}
[]
True
Id field validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
App ID Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Job ID Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Desired Tag Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Git URL Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Git Path Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Git Branch Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Target File Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Notify Email Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
[]
True
Build Context Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/base', 'depends-on': 'centos/centos:latest', 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile.centos7', 'git-branch': 'release-1.5', 'job-id': 'origin-base', 'id': 1}
['Missing required field build-context']
False
Id field validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
App ID Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Job ID Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Desired Tag Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Git URL Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Git Path Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Git Branch Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Target File Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Notify Email Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
[]
True
Build Context Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/builder/docker/custom-docker-builder/', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'origin-custom-docker-builder', 'id': 2}
['Missing required field build-context']
False
Id field validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
App ID Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Job ID Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Desired Tag Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Git URL Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Git Path Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Git Branch Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Target File Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Notify Email Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
[]
True
Build Context Validation
{'app-id': 'openshift', 'git-url': 'git://github.com/openshift/origin', 'git-path': 'images/openvswitch', 'depends-on': ['centos/centos:latest', 'openshift/origin-base:v1.5'], 'notify-email': '[email protected]', 'desired-tag': 'v1.5', 'target-file': 'Dockerfile', 'git-branch': 'release-1.5', 'job-id': 'openvswitch', 'id': 3}
['Missing required field build-context']
False
Top level projects
{'Projects': [{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}, {'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}, {'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}, {'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}]}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/mohammedzee1000/custom_build_context', 'git-path': 'container/', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': '../', 'job-id': 'some-container', 'id': 1}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'caddy_server/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'caddyserver', 'id': 2}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/kubernetes', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'kubernetes', 'id': 3}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 4}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'httpd/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'httpd', 'id': 5}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'python/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'python', 'id': 6}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'memcached/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'memcached', 'id': 7}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'mongodb/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'mongo', 'id': 8}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'qpid/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'qpid', 'id': 9}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'ssh/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'ssh', 'id': 10}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 11}
[]
True
Id field validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
App ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Job ID Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Desired Tag Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Git URL Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Git Path Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Git Branch Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Target File Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Notify Email Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Build Context Validation
{'app-id': 'test', 'git-url': 'https://github.com/CentOS/CentOS-Dockerfiles', 'git-path': 'wordpress/centos7', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'haha', 'target-file': 'Dockerfile', 'build-context': './', 'job-id': 'wordpress', 'id': 12}
[]
True
Top level projects
{'Projects': [{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}]}
[]
True
Id field validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
['id field must be an integer.']
False
App ID Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Job ID Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Desired Tag Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Git URL Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Git Path Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Git Branch Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Target File Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Notify Email Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
[]
True
Build Context Validation
{'app-id': 'bamachrn', 'git-url': 'https://github.com/bamachrn/cccp-python', 'git-path': 'demo', 'depends-on': 'None', 'notify-email': '[email protected]', 'desired-tag': 'release', 'target-file': 'Dockerfile.demo', 'git-branch': 'master', 'job-id': 'python', 'id': '1'}
['Missing required field build-context']
False
Top level projects
{'Projects': [{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}]}
[]
True
Id field validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
App ID Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Job ID Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Desired Tag Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Git URL Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Git Path Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Git Branch Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Target File Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Notify Email Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True
Build Context Validation
{'app-id': 'library', 'git-url': 'https://github.com/cockpituous/cockpit', 'git-path': 'containers/ws', 'git-branch': 'master', 'depends-on': None, 'notify-email': '[email protected]', 'desired-tag': 'latest', 'target-file': 'Dockerfile.centos7', 'build-context': './', 'job-id': 'ws', 'id': 1}
[]
True

@mohammedzee1000 mohammedzee1000 force-pushed the index_ci_refac branch 2 times, most recently from 7167c0e to e797c8e Compare June 19, 2018 08:46
@mohammedzee1000
Copy link
Collaborator Author

#dotests

from glob import glob
import ci.container_index.lib.utils as utils
import ci.container_index.lib.constants as constants
import imp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group the imports like

import a_standard
import b_standard

import a_third_party
import b_third_party

from a_soc import f
from a_soc import g
from b_soc import d

ref

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating

from glob import glob
import ci.container_index.lib.utils as utils
import ci.container_index.lib.constants as constants
import imp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are you using imp? and why ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is an unused import that i added while experimenting. Sorry forgot to remove it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mohammedzee1000 : if you run

pep8 filename.py
flake8 filename.py
pylint --errors-only filename.py

it should help you remove such issues before you even commit to a PR.

import imp


class Engine(object):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstring?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding

Initializes the test engine
"""
# Index file location needs to be provided
if not path_exists(index_location):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of renaming imports, I would import and use

from os import path
[..]

if not path.exists(index_location):

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing

(len(self.index_files) == 1 and
any("index_template" in s for s
in self.index_files))):
raise Exception("No index files to match.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the error message should read "No index files to process."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

from os import environ, path, mkdir, unsetenv, listdir,\
unlink, devnull, getenv, getcwd, chdir, system
from shutil import rmtree
from subprocess import check_call, CalledProcessError, STDOUT
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group the imports.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

try:
fnull = open(devnull, "w")
check_call(cmd, stdout=fnull, stderr=STDOUT)
return True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return True in else block of try

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

with open(file_path, "r") as f:
data = yaml.load(f)
except Exception as e:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so if yaml is not valid a file, we do nothing to report it, refer to my earlier review comment where I pointed out about doing error check while loading user provided yaml files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing this


branches_cmd = r"""git branch -r | grep -v '\->' | while
read remote; do git branch --track "${remote#origin/}"
$remote" &> /dev/null; done"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add some comments here about what this command is doing and why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments added.


system(branches_cmd)
cmd = ["git", "fetch", "--all"]
execute_command(cmd)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the fetch should happen before tracking (above operation)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how i have always used this command. Still trying to figure out why in this order, but this is what i got from the reference.

bamachrn and others added 11 commits June 22, 2018 14:36
Index CI is being re-written to allow modularity
and an easier way to use the existing validation.
Depends on validation moved out of this patch.
- Adding error message and flow in case we failed to fetch data from index file.
- Adding docstrings.
- Fixing imports
- Fixing imports
- Moved return True out of exception
- load and dump yaml now returns error message that can be used by callee.
- Adding missing docstrings.
- Adding default value UNKNOWN to field_name.
- Fixing typo.
- Adding docstrings
- Changing dicts to dictionaries
- Fixing consistency of Id im comments
@navidshaikh navidshaikh merged commit dd6b11d into CentOS:master Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants