Move change-repo-url setup into the integration test

ci_coverage
pull/74103/head
s-hertel 3 weeks ago
parent ba407886d5
commit fbe2e3f16d

@ -1,3 +1,34 @@
- name: CHANGE-REPO-URL | setup
block:
- name: CHANGE-REPO-URL | setup | start git daemon and create repositories
include_role: name=git-daemon
vars:
label: initial
repositories:
- git-test-old.git
shell_commands:
- 'echo initial > README.md'
- 'git add README.md && git commit -m "Initial commit"'
- 'git push origin {{ git_default_branch }}'
- name: CHANGE-REPO-URL | setup | fork repo
shell: 'cp -pr git-test-old.git git-test-new.git'
args:
chdir: '{{ remote_tmp_dir }}/git_repositories'
- name: CHANGE-REPO-URL | setup | update forked repo
include_role: name=git-daemon
vars:
label: update
repositories:
- git-test-new.git
shell_commands:
- 'echo update > README.md'
- 'git add README.md && git commit -m "second commit"'
- 'echo foo > newfilename'
- 'git add newfilename && git commit -m "create newfile"'
- 'git push origin {{ git_default_branch }}'
# test change of repo url
# see https://github.com/ansible/ansible-modules-core/pull/721

@ -35,8 +35,8 @@ repo_format2: 'git@github.com:jimi-c/test_role.git'
repo_format3: 'ssh://git@github.com/jimi-c/test_role.git'
repo_submodules: 'git://localhost/test_submodules_newer.git'
repo_submodule1: 'git://localhost/test_submodules_subm1.git'
repo_update_url_1: 'https://github.com/ansible-test-robinro/git-test-old'
repo_update_url_2: 'https://github.com/ansible-test-robinro/git-test-new'
repo_update_url_1: 'git://localhost/git-test-old'
repo_update_url_2: 'git://localhost/git-test-new'
known_host_files:
- "{{ lookup('env','HOME') }}/.ssh/known_hosts"
- '/etc/ssh/ssh_known_hosts'

Loading…
Cancel
Save