Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLIENT-2758 #601

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b2616e3
CLIENT-2758
DomPeliniAerospike Jan 25, 2024
81eb74b
Update tests.yml
DomPeliniAerospike Jan 25, 2024
4acf56e
Update tests.yml
DomPeliniAerospike Jan 25, 2024
f7d4e93
Update tests.yml
DomPeliniAerospike Jan 25, 2024
e39c390
Update tests.yml
DomPeliniAerospike Jan 25, 2024
a8e8722
Update tests.yml
DomPeliniAerospike Jan 25, 2024
7325e57
Update tests.yml
DomPeliniAerospike Jan 25, 2024
d8022b5
Update tests.yml
DomPeliniAerospike Jan 25, 2024
37892bb
Update tests.yml
DomPeliniAerospike Jan 25, 2024
8d9d491
Update tests.yml
DomPeliniAerospike Jan 25, 2024
fc9c7f4
Update tests.yml
DomPeliniAerospike Jan 25, 2024
3e82086
Update tests.yml
DomPeliniAerospike Jan 25, 2024
9abbf6e
Update tests.yml
DomPeliniAerospike Jan 25, 2024
4b9b590
Update tests.yml
DomPeliniAerospike Jan 25, 2024
3b67cd8
Update tests.yml
DomPeliniAerospike Jan 25, 2024
09a1624
Create action.yml
DomPeliniAerospike Jan 25, 2024
886361a
Update tests.yml
DomPeliniAerospike Jan 25, 2024
1c7a366
Specified server versions for some tests
DomPeliniAerospike Jan 25, 2024
4949a61
Update maps.js
DomPeliniAerospike Jan 25, 2024
e074c23
Added hostname
DomPeliniAerospike Jan 25, 2024
ef8a6c7
Update tests.yml
DomPeliniAerospike Jan 25, 2024
cecdb75
Update query.js
DomPeliniAerospike Jan 25, 2024
4059bc5
Update query.js
DomPeliniAerospike Jan 25, 2024
8e39d5d
Update query.js
DomPeliniAerospike Jan 25, 2024
dca7615
Update query.js
DomPeliniAerospike Jan 25, 2024
ff0fb68
Update query.js
DomPeliniAerospike Jan 25, 2024
dc84273
Update query.js
DomPeliniAerospike Jan 25, 2024
bd607aa
Added build-bindings.yml
DomPeliniAerospike Jan 31, 2024
4a7b5a6
Update tests.yml
DomPeliniAerospike Jan 31, 2024
5b47c5c
Fixed typo
DomPeliniAerospike Jan 31, 2024
96d03de
Update build-bindings.yml
DomPeliniAerospike Jan 31, 2024
ea254f2
Update build-bindings.yml
DomPeliniAerospike Jan 31, 2024
af83aa2
Update build-bindings.yml
DomPeliniAerospike Jan 31, 2024
ca5700f
Update build-bindings.yml
DomPeliniAerospike Jan 31, 2024
7df0b77
Update build-bindings.yml
DomPeliniAerospike Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/actions/run-ee-server/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: 'Run EE Server'
description: 'Run EE server'
inputs:
use-server-rc:
required: true
default: false
server-tag:
required: true
default: 'latest'
# Github Composite Actions can't access secrets
# so we need to pass them in as inputs
docker-hub-username:
required: false
type: string
docker-hub-password:
required: false
type: string

runs:
using: "composite"
steps:
- name: Install crudini to manipulate config.conf
run: python3 -m pip install crudini==0.9.4
shell: bash

- name: Add enterprise edition config to config.conf
run: |
python3 -m crudini --set config.conf enterprise-edition hosts 127.0.0.1:3000
python3 -m crudini --set config.conf enterprise-edition user superuser
python3 -m crudini --set config.conf enterprise-edition password superuser
working-directory: test
shell: bash

- name: Create config folder to store configs in
run: mkdir configs
shell: bash

- name: Use release server
if: ${{ inputs.use-server-rc == 'false' }}
run: echo "SERVER_IMAGE=aerospike/aerospike-server-enterprise" >> $GITHUB_ENV
shell: bash

- name: Use release candidate server
if: ${{ inputs.use-server-rc == 'true' }}
run: echo "SERVER_IMAGE=aerospike/aerospike-server-enterprise-rc" >> $GITHUB_ENV
shell: bash

- name: Log into Docker Hub to get server RC
if: ${{ inputs.use-server-rc == 'true' }}
run: docker login --username ${{ inputs.docker-hub-username }} --password ${{ inputs.docker-hub-password }}
shell: bash

- name: Get default aerospike.conf from Docker server EE container
run: |
docker run -d --name aerospike -p 3000-3002:3000-3002 $SERVER_IMAGE:${{ inputs.server-tag }}
sleep 5
docker cp aerospike:/etc/aerospike/aerospike.conf ./configs/aerospike.conf
docker container stop aerospike
docker container rm aerospike
shell: bash

- name: Enable security features using aerospike.conf
# Security stanza
run: echo -e "security {\n\tenable-quotas true\n}\n" >> ./aerospike.conf
working-directory: ./configs
shell: bash

- name: Run enterprise edition server
run: docker run -tid -v $(pwd)/configs:/opt/aerospike/etc -p 3000:3000 --name aerospike $SERVER_IMAGE:${{ inputs.server-tag }} asd --config-file /opt/aerospike/etc/aerospike.conf
shell: bash

- name: Create user in database for tests
# Use default admin user to create another user for testing
run: docker exec aerospike asadm --user admin --password admin --enable -e "manage acl create user superuser password superuser roles read-write-udf sys-admin user-admin data-admin"
shell: bash
Loading