Commit 6b731c7f authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

Enable geth infra tests (#759)

parent e039dab6
...@@ -25,15 +25,18 @@ jobs: ...@@ -25,15 +25,18 @@ jobs:
export TAG=$(curl -s https://api.github.com/repos/ethersphere/beekeeper/releases/latest | jq -r .tag_name) export TAG=$(curl -s https://api.github.com/repos/ethersphere/beekeeper/releases/latest | jq -r .tag_name)
curl -Ls https://github.com/ethersphere/beekeeper/releases/download/${TAG}/beekeeper-linux-amd64 -o beekeeper curl -Ls https://github.com/ethersphere/beekeeper/releases/download/${TAG}/beekeeper-linux-amd64 -o beekeeper
chmod +x beekeeper chmod +x beekeeper
- name: Set testing cluster (DNS discovery) - name: Prepare testing cluster (DNS discovery)
run: | run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts ./beeinfra.sh prepare --dns-disco --geth
for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts
./beeinfra.sh install --dns-disco --local -r "${REPLICA}" --bootnode /dnsaddr/localhost --pay-threshold 10000
- name: Set kube config - name: Set kube config
run: | run: |
mkdir -p ~/.kube mkdir -p ~/.kube
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Set testing cluster (DNS discovery)
run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts
./beeinfra.sh install --dns-disco --local -r "${REPLICA}" --bootnode /dnsaddr/localhost --pay-threshold 10000 --geth
- name: Test fullconnectivity - name: Test fullconnectivity
id: fullconnectivity-1 id: fullconnectivity-1
run: ./beekeeper check fullconnectivity --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" run: ./beekeeper check fullconnectivity --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}"
...@@ -43,11 +46,19 @@ jobs: ...@@ -43,11 +46,19 @@ jobs:
- name: Test settlements - name: Test settlements
id: settlements id: settlements
run: ./beekeeper check settlements --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --upload-node-count 10 -t 10000 run: ./beekeeper check settlements --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --upload-node-count 10 -t 10000
- name: Clean the cluster - name: Destroy the cluster
run: |
./beeinfra.sh destroy
- name: Prepare testing cluster (Node connection)
run: |
./beeinfra.sh prepare --geth
- name: Set kube config
run: | run: |
helm uninstall bee -n bee mkdir -p ~/.kube
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Set testing cluster (Node connection) - name: Set testing cluster (Node connection)
run: ./beeinfra.sh install --local -r "${REPLICA}" run: |
./beeinfra.sh install --local -r "${REPLICA}" --geth
- name: Test fullconnectivity - name: Test fullconnectivity
id: fullconnectivity-2 id: fullconnectivity-2
run: ./beekeeper check fullconnectivity --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" run: ./beekeeper check fullconnectivity --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}"
...@@ -75,10 +86,17 @@ jobs: ...@@ -75,10 +86,17 @@ jobs:
- name: Test manifest - name: Test manifest
id: manifest id: manifest
run: ./beekeeper check manifest --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" run: ./beekeeper check manifest --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}"
- name: Clean the cluster - name: Destroy the cluster
run: | run: |
helm uninstall bee -n bee ./beeinfra.sh destroy
grep -vE 'bee|registry.localhost' /etc/hosts | sudo tee /etc/hosts grep -vE 'bee|registry.localhost' /etc/hosts | sudo tee /etc/hosts
- name: Prepare testing cluster (Node connection) 5 bee nodes
run: |
./beeinfra.sh prepare --geth
- name: Set kube config
run: |
mkdir -p ~/.kube
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Increase REPLICA to 5 - name: Increase REPLICA to 5
run: | run: |
echo "::set-env name=REPLICA::5" echo "::set-env name=REPLICA::5"
...@@ -86,7 +104,7 @@ jobs: ...@@ -86,7 +104,7 @@ jobs:
run: | run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts
./beeinfra.sh install --local -r "${REPLICA}" ./beeinfra.sh install --local -r "${REPLICA}" --geth
- name: Test localpinning 1 - name: Test localpinning 1
id: localpinning-1 id: localpinning-1
run: ./beekeeper check localpinning --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" run: ./beekeeper check localpinning --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment