Skip to content

Test ARM Template for Enterprise #19

Test ARM Template for Enterprise

Test ARM Template for Enterprise #19

Workflow file for this run

name: Test ARM Template for Enterprise
on:
workflow_dispatch:
pull_request:
paths:
- marketplace/neo4j-enterprise/**
- scripts/neo4j-enterprise/**
branches:
- main
jobs:
test-template-cluster-v5:
name: Test ARM (Neo4j Cluster)
runs-on: ubuntu-latest
env:
ResourceGroupLocation: westeurope
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure Resource Group and Deployment variables
id: variables
run: |
DATE=`echo $(date '+%Y%m%d-%S-%2N')`
RGNAME=`echo ghactions-rg-$DATE`
DEPNAME=`echo ghactions-dep-$DATE`
ARTIFACTS_LOCATION=`echo https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/`
if ${{ github.event_name == 'workflow_dispatch' }}; then
ARTIFACTS_LOCATION=`echo https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/`
fi
echo "rgName=$RGNAME" >> $GITHUB_OUTPUT
echo "artifactsLocation=$ARTIFACTS_LOCATION" >> $GITHUB_OUTPUT
echo "depName=$DEPNAME" >> $GITHUB_OUTPUT
echo "Resource Group name: $RGNAME"
echo "Deployment name: $DEPNAME"
- name: Create Resource Group
uses: Azure/CLI@v1
id: rgCreate
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ steps.variables.outputs.rgName }} --location ${{ env.ResourceGroupLocation }}
echo "Azure resource group created"
echo "Artifacts Location = ${{ steps.variables.outputs.artifactsLocation }}"
- name: Deploy ARM Template (Neo4j Cluster v5)
id: deployARM
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ steps.variables.outputs.rgName }}
template: ./marketplace/neo4j-enterprise/mainTemplate.json
parameters: ./marketplace/neo4j-enterprise/parameters.json nodeCount="3" graphDatabaseVersion="5" _artifactsLocation=${{ steps.variables.outputs.artifactsLocation }}
deploymentName: ${{ steps.variables.outputs.depName }}
- name: Execute tests
run: |
URI=$(echo "${{ steps.deployARM.outputs.neo4jClusterBrowserURL }}" | sed 's/http/neo4j/g;s/7474\//7687/g')
PASSWORD=$(cat ./marketplace/neo4j-enterprise/parameters.json | jq .adminPassword.value | sed 's/"//g')
curl -LJO https://github.com/neo4j/neo4jtester/raw/main/build/neo4jtester_linux
chmod +x ./neo4jtester_linux
./neo4jtester_linux "${URI}" "neo4j" "${PASSWORD}" "Enterprise"
- name: Delete Resource Group
if: always()
uses: Azure/CLI@v1
with:
inlineScript: |
#!/bin/bash
az group delete --name ${{ steps.variables.outputs.rgName }} --yes
echo "Azure resource group deleted !!"
test-template-standalone-v5:
name: Test ARM (Neo4j Standalone)
runs-on: ubuntu-latest
env:
ResourceGroupLocation: eastus2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure Resource Group and Deployment variables
id: variables
run: |
DATE=`echo $(date '+%Y%m%d-%S-%2N')`
RGNAME=`echo ghactions-rg-$DATE`
DEPNAME=`echo ghactions-dep-$DATE`
echo "rgName=$RGNAME" >> $GITHUB_OUTPUT
echo "depName=$DEPNAME" >> $GITHUB_OUTPUT
echo "Resource Group name: $RGNAME"
echo "Deployment name: $DEPNAME"
- name: Create Resource Group
uses: Azure/CLI@v1
id: rgCreate
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ steps.variables.outputs.rgName }} --location ${{ env.ResourceGroupLocation }}
echo "Azure resource group created"
echo "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
- name: Deploy ARM Template (Neo4j Standalone v5)
id: deployARM
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ steps.variables.outputs.rgName }}
template: ./marketplace/neo4j-enterprise/mainTemplate.json
parameters: ./marketplace/neo4j-enterprise/parameters.json nodeCount="1" graphDatabaseVersion="5" _artifactsLocation="https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
deploymentName: ${{ steps.variables.outputs.depName }}
- name: Execute tests
run: |
URI=$(echo "${{ steps.deployARM.outputs.neo4jBrowserURL }}" | sed 's/http/neo4j/g;s/7474\//7687/g')
PASSWORD=$(cat ./marketplace/neo4j-enterprise/parameters.json | jq .adminPassword.value | sed 's/"//g')
curl -LJO https://github.com/neo4j/neo4jtester/raw/main/build/neo4jtester_linux
chmod +x ./neo4jtester_linux
./neo4jtester_linux "${URI}" "neo4j" "${PASSWORD}" "Enterprise"
- name: Delete Resource Group
if: always()
uses: Azure/CLI@v1
with:
inlineScript: |
#!/bin/bash
az group delete --name ${{ steps.variables.outputs.rgName }} --yes
echo "Azure resource group deleted !!"
test-template-cluster-v5-evaluation:
name: Test ARM (Neo4j Cluster Evaluation)
runs-on: ubuntu-latest
env:
ResourceGroupLocation: westeurope
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure Resource Group and Deployment variables
id: variables
run: |
DATE=`echo $(date '+%Y%m%d-%S-%2N')`
RGNAME=`echo ghactions-rg-$DATE`
DEPNAME=`echo ghactions-dep-$DATE`
echo "rgName=$RGNAME" >> $GITHUB_OUTPUT
echo "depName=$DEPNAME" >> $GITHUB_OUTPUT
echo "Resource Group name: $RGNAME"
echo "Deployment name: $DEPNAME"
- name: Create Resource Group
uses: Azure/CLI@v1
id: rgCreate
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ steps.variables.outputs.rgName }} --location ${{ env.ResourceGroupLocation }}
echo "Azure resource group created"
echo "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
- name: Deploy ARM Template (Neo4j Cluster v5)
id: deployARM
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ steps.variables.outputs.rgName }}
template: ./marketplace/neo4j-enterprise/mainTemplate.json
parameters: ./marketplace/neo4j-enterprise/parameters.json nodeCount="3" graphDatabaseVersion="5" licenseType="Evaluation" _artifactsLocation="https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
deploymentName: ${{ steps.variables.outputs.depName }}
- name: Execute tests
run: |
URI=$(echo "${{ steps.deployARM.outputs.neo4jClusterBrowserURL }}" | sed 's/http/neo4j/g;s/7474\//7687/g')
PASSWORD=$(cat ./marketplace/neo4j-enterprise/parameters.json | jq .adminPassword.value | sed 's/"//g')
curl -LJO https://github.com/neo4j/neo4jtester/raw/main/build/neo4jtester_linux
chmod +x ./neo4jtester_linux
./neo4jtester_linux "${URI}" "neo4j" "${PASSWORD}" "Evaluation"
- name: Delete Resource Group
if: always()
uses: Azure/CLI@v1
with:
inlineScript: |
#!/bin/bash
az group delete --name ${{ steps.variables.outputs.rgName }} --yes
echo "Azure resource group deleted !!"
test-template-standalone-v5-evaluation:
name: Test ARM (Neo4j Standalone Evaluation)
runs-on: ubuntu-latest
env:
ResourceGroupLocation: eastus2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure Resource Group and Deployment variables
id: variables
run: |
DATE=`echo $(date '+%Y%m%d-%S-%2N')`
RGNAME=`echo ghactions-rg-$DATE`
DEPNAME=`echo ghactions-dep-$DATE`
echo "rgName=$RGNAME" >> $GITHUB_OUTPUT
echo "depName=$DEPNAME" >> $GITHUB_OUTPUT
echo "Resource Group name: $RGNAME"
echo "Deployment name: $DEPNAME"
- name: Create Resource Group
uses: Azure/CLI@v1
id: rgCreate
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ steps.variables.outputs.rgName }} --location ${{ env.ResourceGroupLocation }}
echo "Azure resource group created"
echo "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
- name: Deploy ARM Template (Neo4j Standalone v5)
id: deployARM
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ steps.variables.outputs.rgName }}
template: ./marketplace/neo4j-enterprise/mainTemplate.json
parameters: ./marketplace/neo4j-enterprise/parameters.json nodeCount="1" graphDatabaseVersion="5" licenseType="Evaluation" _artifactsLocation="https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
deploymentName: ${{ steps.variables.outputs.depName }}
- name: Execute tests
run: |
URI=$(echo "${{ steps.deployARM.outputs.neo4jBrowserURL }}" | sed 's/http/neo4j/g;s/7474\//7687/g')
PASSWORD=$(cat ./marketplace/neo4j-enterprise/parameters.json | jq .adminPassword.value | sed 's/"//g')
curl -LJO https://github.com/neo4j/neo4jtester/raw/main/build/neo4jtester_linux
chmod +x ./neo4jtester_linux
./neo4jtester_linux "${URI}" "neo4j" "${PASSWORD}" "Evaluation"
- name: Delete Resource Group
if: always()
uses: Azure/CLI@v1
with:
inlineScript: |
#!/bin/bash
az group delete --name ${{ steps.variables.outputs.rgName }} --yes
echo "Azure resource group deleted !!"
test-template-cluster-v44:
name: Test ARM (Neo4j Cluster v4.4)
runs-on: ubuntu-latest
env:
ResourceGroupLocation: uksouth
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure Resource Group and Deployment variables
id: variables
run: |
DATE=`echo $(date '+%Y%m%d-%S-%2N')`
RGNAME=`echo ghactions-rg-$DATE`
DEPNAME=`echo ghactions-dep-$DATE`
echo "rgName=$RGNAME" >> $GITHUB_OUTPUT
echo "depName=$DEPNAME" >> $GITHUB_OUTPUT
echo "Resource Group name: $RGNAME"
echo "Deployment name: $DEPNAME"
- name: Create Resource Group
uses: Azure/CLI@v1
id: rgCreate
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ steps.variables.outputs.rgName }} --location ${{ env.ResourceGroupLocation }}
echo "Azure resource group created"
echo "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
- name: Deploy ARM Template (Neo4j Cluster v4.4)
id: deployARM
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ steps.variables.outputs.rgName }}
template: ./marketplace/neo4j-enterprise/mainTemplate.json
parameters: ./marketplace/neo4j-enterprise/parameters.json nodeCount="3" graphDatabaseVersion="4.4" _artifactsLocation="https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
deploymentName: ${{ steps.variables.outputs.depName }}
- name: Execute tests
run: |
URI=$(echo "${{ steps.deployARM.outputs.neo4jClusterBrowserURL }}" | sed 's/http/neo4j/g;s/7474\//7687/g')
PASSWORD=$(cat ./marketplace/neo4j-enterprise/parameters.json | jq .adminPassword.value | sed 's/"//g')
curl -LJO https://github.com/neo4j/neo4jtester/raw/main/build/neo4jtester_linux
chmod +x ./neo4jtester_linux
./neo4jtester_linux "${URI}" "neo4j" "${PASSWORD}" "Enterprise"
- name: Delete Resource Group
if: always()
uses: Azure/CLI@v1
with:
inlineScript: |
#!/bin/bash
az group delete --name ${{ steps.variables.outputs.rgName }} --yes
echo "Azure resource group deleted !!"
test-template-standalone-v44:
name: Test ARM (Neo4j Standalone v4.4)
runs-on: ubuntu-latest
env:
ResourceGroupLocation: swedencentral
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure Resource Group and Deployment variables
id: variables
run: |
DATE=`echo $(date '+%Y%m%d-%S-%2N')`
RGNAME=`echo ghactions-rg-$DATE`
DEPNAME=`echo ghactions-dep-$DATE`
echo "rgName=$RGNAME" >> $GITHUB_OUTPUT
echo "depName=$DEPNAME" >> $GITHUB_OUTPUT
echo "Resource Group name: $RGNAME"
echo "Deployment name: $DEPNAME"
- name: Create Resource Group
uses: Azure/CLI@v1
id: rgCreate
with:
inlineScript: |
#!/bin/bash
az group create --name ${{ steps.variables.outputs.rgName }} --location ${{ env.ResourceGroupLocation }}
echo "Azure resource group created"
echo "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
- name: Deploy ARM Template (Neo4j Standalone v4.4)
id: deployARM
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ steps.variables.outputs.rgName }}
template: ./marketplace/neo4j-enterprise/mainTemplate.json
parameters: ./marketplace/neo4j-enterprise/parameters.json nodeCount="1" graphDatabaseVersion="4.4" _artifactsLocation="https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref }}/"
deploymentName: ${{ steps.variables.outputs.depName }}
- name: Execute tests
run: |
URI=$(echo "${{ steps.deployARM.outputs.neo4jBrowserURL }}" | sed 's/http/neo4j/g;s/7474\//7687/g')
PASSWORD=$(cat ./marketplace/neo4j-enterprise/parameters.json | jq .adminPassword.value | sed 's/"//g')
curl -LJO https://github.com/neo4j/neo4jtester/raw/main/build/neo4jtester_linux
chmod +x ./neo4jtester_linux
./neo4jtester_linux "${URI}" "neo4j" "${PASSWORD}" "Enterprise"
- name: Delete Resource Group
if: always()
uses: Azure/CLI@v1
with:
inlineScript: |
#!/bin/bash
az group delete --name ${{ steps.variables.outputs.rgName }} --yes
echo "Azure resource group deleted !!"