GithubHelp home page GithubHelp logo

ansible-role-gocd's Introduction

Hi there ๐Ÿ‘‹

ansible-role-gocd's People

Contributors

asg1612 avatar gofrolist avatar

Watchers

 avatar

Forkers

gofrolist

ansible-role-gocd's Issues

Fix lint error

--> Action: 'lint'
--> Executing Yamllint on files found in /home/travis/build/asg1612/ansible-role-gocd/...
    /home/travis/build/asg1612/ansible-role-gocd/tasks/main.yml
      20:1      error    trailing spaces  (trailing-spaces)
    
    /home/travis/build/asg1612/ansible-role-gocd/tasks/go-server.yml
      13:7      error    wrong indentation: expected 4 but found 6  (indentation)
      13:16     warning  truthy value is not quoted  (truthy)

Create testinfra tests

  • Check: Gocd server container
  • Check: Traefik container
  • Check: Gocd agent
  • Check: Port Traefik
  • Check: Port Gocd Server

molecule podman

Github action gofrolist/molecule-action@v2 having some issues with driver podman and I'm working on fix. For now I recommend to use driver docker

  TASK [Discover local Podman images] ********************************************
  failed: [localhost] (item=molecule-gocd-server) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_index_var": "i", "ansible_loop_var": "item", "changed": true, "checksum": "68ec1be989c98282ba67f7657776513635816e15", "dest": "/github/home/.cache/molecule/ansible-role-gocd/default/Dockerfile_asg1612_docker_systemd", "diff": [], "failed": false, "gid": 0, "group": "root", "i": 0, "invocation": {"module_args": {"_original_basename": "Dockerfile.j2", "attributes": null, "backup": false, "checksum": "68ec1be989c98282ba67f7657776513635816e15", "content": null, "dest": "/github/home/.cache/molecule/ansible-role-gocd/default/Dockerfile_asg1612_docker_systemd", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1634279342.0860417-272-210027621527269/source", "unsafe_writes": false, "validate": null}}, "item": {"command": "/lib/systemd/systemd", "exposed_ports": ["8153:8153", "8154:8154"], "groups": ["gocd_server"], "image": "asg1612/docker-systemd", "name": "molecule-gocd-server", "privileged": true, "required": "True", "volumes": ["/sys/fs/cgroup:/sys/fs/cgroup:ro"]}, "md5sum": "5f9db9bd13e0c4ed20da26858a63b075", "mode": "0600", "owner": "root", "size": 1051, "src": "/root/.ansible/tmp/ansible-tmp-1634279342.0860417-272-210027621527269/source", "state": "file", "uid": 0}, "msg": "Unable to gather info for 'molecule_local/molecule-gocd-server': cannot clone: Operation not permitted\nError: cannot re-exec process\n"}

molecule verify fail

--> Action: 'verify'
--> Executing Testinfra tests found in /home/travis/build/asg1612/ansible-role-gocd/molecule/default/tests/...
    ============================= test session starts ==============================
    platform linux2 -- Python 2.7.14, pytest-3.3.0, py-1.5.2, pluggy-0.6.0
    rootdir: /home/travis/build/asg1612/ansible-role-gocd/molecule/default, inifile:
    plugins: testinfra-1.7.1
collected 4 items                                                              
    
    tests/test_server.py FF                                                  [ 50%]
    tests/test_agent.py ..                                                   [100%]
    
    =================================== FAILURES ===================================
    ____________ test_server_container[ansible://molecule-gocd-server] _____________
    
    host = <testinfra.host.Host object at 0x7fc6f461bf90>
    
        def test_server_container(host):
            # 'host' now binds to the container
    >       assert host.check_output('docker ps -f "name=gocd-server" -f '
                                     '"status=running" --format '
                                     '{{ "{{.Names}}" }}') == 'gocd-server'
    E       AssertionError: assert '' == 'gocd-server'
    E         + gocd-server
    
    tests/test_server.py:11: AssertionError
    ------------------------------ Captured log call -------------------------------
    ansible.py                  64 INFO     RUN Ansible(u'shell', 'docker ps -f "name=gocd-server" -f "status=running" --format {{ "{{.Names}}" }}', {}): {'_ansible_no_log': False,
     '_ansible_parsed': True,
     u'changed': True,
     u'cmd': u'docker ps -f "name=gocd-server" -f "status=running" --format {{.Names}}',
     u'delta': u'0:00:00.051266',
     u'end': u'2018-03-13 12:27:22.589392',
     u'invocation': {u'module_args': {u'_raw_params': u'docker ps -f "name=gocd-server" -f "status=running" --format {{.Names}}',
                                      u'_uses_shell': True,
                                      u'chdir': None,
                                      u'creates': None,
                                      u'executable': None,
                                      u'removes': None,
                                      u'stdin': None,
                                      u'warn': True}},
     u'rc': 0,
     u'start': u'2018-03-13 12:27:22.538126',
     u'stderr': u'',
     'stderr_lines': [],
     u'stdout': u'',
     'stdout_lines': []}
    base.py                    241 INFO     RUN CommandResult(command='docker ps -f "name=gocd-server" -f "status=running" --format {{ "{{.Names}}" }}', exit_status=0, stdout=u'', stderr=u'')
    ____________ test_traefik_container[ansible://molecule-gocd-server] ____________
    
    host = <testinfra.host.Host object at 0x7fc6f461bf90>
    
        def test_traefik_container(host):
            # 'host' now binds to the container
            command = ('docker ps -f "name=traefik_traefik_1" -f "status=running" '
                       '--format {{ "{{.Names}}" }}')
    >       assert host.check_output(command) == 'traefik_traefik_1'
    E       AssertionError: assert '' == 'traefik_traefik_1'
    E         + traefik_traefik_1
    
    tests/test_server.py:20: AssertionError
    ------------------------------ Captured log call -------------------------------
    ansible.py                  64 INFO     RUN Ansible(u'shell', 'docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{ "{{.Names}}" }}', {}): {'_ansible_no_log': False,
     '_ansible_parsed': True,
     u'changed': True,
     u'cmd': u'docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{.Names}}',
     u'delta': u'0:00:00.049543',
     u'end': u'2018-03-13 12:27:23.777118',
     u'invocation': {u'module_args': {u'_raw_params': u'docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{.Names}}',
                                      u'_uses_shell': True,
                                      u'chdir': None,
                                      u'creates': None,
                                      u'executable': None,
                                      u'removes': None,
                                      u'stdin': None,
                                      u'warn': True}},
     u'rc': 0,
     u'start': u'2018-03-13 12:27:23.727575',
     u'stderr': u'',
     'stderr_lines': [],
     u'stdout': u'',
     'stdout_lines': []}
    base.py                    241 INFO     RUN CommandResult(command='docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{ "{{.Names}}" }}', exit_status=0, stdout=u'', stderr=u'')
    ===================== 2 failed, 2 passed in 16.28 seconds ======================

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.