aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/ansible/roles
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-10-06 05:55:47 +0800
committerFelix Lange <fjl@twurst.com>2016-10-06 21:36:21 +0800
commit1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4 (patch)
tree0d8d9cd20dc8584599209cbce1cffae0b0e0516d /tests/files/ansible/roles
parent2acb9a6ea7ddab541122ede96f2275598ae36931 (diff)
downloadgo-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.tar
go-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.tar.gz
go-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.tar.bz2
go-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.tar.lz
go-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.tar.xz
go-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.tar.zst
go-tangerine-1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4.zip
tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1
Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'.
Diffstat (limited to 'tests/files/ansible/roles')
-rwxr-xr-xtests/files/ansible/roles/common/handlers/main.yml4
-rwxr-xr-xtests/files/ansible/roles/common/tasks/main.yml13
-rwxr-xr-xtests/files/ansible/roles/docker/handlers/main.yml4
-rwxr-xr-xtests/files/ansible/roles/docker/tasks/main.yml40
-rwxr-xr-xtests/files/ansible/roles/ec2/tasks/setup.yml32
-rwxr-xr-xtests/files/ansible/roles/ec2/tasks/terminate.yml8
-rwxr-xr-xtests/files/ansible/roles/ec2/vars/main.yml17
-rwxr-xr-xtests/files/ansible/roles/testrunner/tasks/main.yml34
8 files changed, 0 insertions, 152 deletions
diff --git a/tests/files/ansible/roles/common/handlers/main.yml b/tests/files/ansible/roles/common/handlers/main.yml
deleted file mode 100755
index 767fc7ba6..000000000
--- a/tests/files/ansible/roles/common/handlers/main.yml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- name: restart sshd
- sudo: true
- service: name=ssh state=restarted
diff --git a/tests/files/ansible/roles/common/tasks/main.yml b/tests/files/ansible/roles/common/tasks/main.yml
deleted file mode 100755
index 6c0c7a119..000000000
--- a/tests/files/ansible/roles/common/tasks/main.yml
+++ /dev/null
@@ -1,13 +0,0 @@
----
-- name: install package dependencies
- sudo: true
- apt: name={{ item }}
- with_items:
- - parallel
- - htop
-
-- name: checkout test repo
- git:
- repo: https://github.com/ethereum/tests.git
- version: develop
- dest: git
diff --git a/tests/files/ansible/roles/docker/handlers/main.yml b/tests/files/ansible/roles/docker/handlers/main.yml
deleted file mode 100755
index 767fc7ba6..000000000
--- a/tests/files/ansible/roles/docker/handlers/main.yml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- name: restart sshd
- sudo: true
- service: name=ssh state=restarted
diff --git a/tests/files/ansible/roles/docker/tasks/main.yml b/tests/files/ansible/roles/docker/tasks/main.yml
deleted file mode 100755
index c434b34a5..000000000
--- a/tests/files/ansible/roles/docker/tasks/main.yml
+++ /dev/null
@@ -1,40 +0,0 @@
----
-- name: update package list
- sudo: true
- apt: update_cache=true
-
-- name: install docker dependencies
- sudo: true
- apt: name={{ item }} install_recommends=false
- with_items:
- # Docker has serious problems on EC2: http://www.danstutzman.com/2014/07/speed-up-docker-on-ec2
- # and https://github.com/docker/docker/issues/4036
- - linux-generic
- - python-pip
-
-- name: Kernel update needs a restart
- sudo: true
- command: shutdown -r now
- async: 0
- poll: 0
- ignore_errors: true
-
-- name: waiting for server to come back
- local_action: wait_for host={{ inventory_hostname }} port=22
- state=started
- sudo: false
-
-- name: install docker
- sudo: true
- # install script from https://docs.docker.com/installation/ubuntulinux/
- # TODO this is not idempotent
- shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh
-
-- name: install docker python API
- sudo: true
- pip: name=docker-py
-
-- name: enable docker for standard user
- sudo: true
- user: name={{ ansible_ssh_user }} groups=docker append=yes
- notify: restart sshd
diff --git a/tests/files/ansible/roles/ec2/tasks/setup.yml b/tests/files/ansible/roles/ec2/tasks/setup.yml
deleted file mode 100755
index 299b55c35..000000000
--- a/tests/files/ansible/roles/ec2/tasks/setup.yml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: create default security group
- ec2_group:
- name: "{{ security_group }}"
- region: "{{ region }}"
- description: "{{ project_description }}"
- rules:
- # ssh
- - proto: tcp
- from_port: 22
- to_port: 22
- cidr_ip: "{{ ip_access_range }}"
- rules_egress:
- - proto: all
- cidr_ip: "{{ ip_access_range }}"
-
-
-- name: start ec2 instances
- ec2:
- group: "{{ security_group }}"
- instance_type: "{{ instance_type }}"
- image: "{{ image }}"
- wait: true
- region: "{{ region }}"
- key_name: "{{ keypair }}"
- instance_tags:
- Name: "{{ item }}"
- Role: client-tests
- count_tag:
- Name: "{{ item }}"
- exact_count: 1
- with_sequence: start=0 end={{ total_no_instances - 1 }} format=testrunner-%1u
diff --git a/tests/files/ansible/roles/ec2/tasks/terminate.yml b/tests/files/ansible/roles/ec2/tasks/terminate.yml
deleted file mode 100755
index e3d3df672..000000000
--- a/tests/files/ansible/roles/ec2/tasks/terminate.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- name: Terminate ec2 instances
- local_action: ec2
- state=absent
- instance_ids={{ ec2_id }}
- region={{ region }}
- wait=true
-
diff --git a/tests/files/ansible/roles/ec2/vars/main.yml b/tests/files/ansible/roles/ec2/vars/main.yml
deleted file mode 100755
index 3166da02c..000000000
--- a/tests/files/ansible/roles/ec2/vars/main.yml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-# default config for ec2 instances
-
-instance_type: c4.8xlarge
-security_group: client-tests
-
-image: ami-9eaa1cf6
-region: us-east-1
-keypair: christoph
-
-# limit access to AWS to these clients in CDIR notation
-ip_access_range: 0.0.0.0/0
-
-
-project_description: https://github.com/ethereum/tests
-
-total_no_instances: 3
diff --git a/tests/files/ansible/roles/testrunner/tasks/main.yml b/tests/files/ansible/roles/testrunner/tasks/main.yml
deleted file mode 100755
index 41c195f24..000000000
--- a/tests/files/ansible/roles/testrunner/tasks/main.yml
+++ /dev/null
@@ -1,34 +0,0 @@
----
-- name: update C++ client
- docker_image:
- path: /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-cppjit
- name: ethereum/cppjit-testrunner
- state: build
- async: 1200
- poll: 5
-
-- name: update Go client
- docker_image:
- path: /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-go
- name: ethereum/go-testrunner
- state: build
- async: 1200
- poll: 5
-
-- name: update Python client
- docker_image:
- path: /home/{{ ansible_ssh_user }}/git/ansible/test-files/docker-python
- name: ethereum/python-testrunner
- state: build
- async: 1200
- poll: 5
-
-- name: Run infinite tests
- shell: seq {{ ansible_processor_vcpus }} | parallel --max-args=0 /home/{{ ansible_ssh_user }}/git/ansible/test-files/testrunner.sh
- # run for two months
- async: "{{ 60 * 60 * 24 * 30 * 2 }}"
- poll: 0
- register: log_runner
-
-- name: verify previous task
- async_status: jid={{ log_runner.ansible_job_id }}