Skip to content

Commit 7e650f4

Browse files
committed
Add integration tests for Light and Medium (HA) duty environments for Level 1 networking
Signed-off-by: Webster Mudge <[email protected]>
1 parent 9116238 commit 7e650f4

File tree

18 files changed

+221
-0
lines changed

18 files changed

+221
-0
lines changed

tests/integration/requirements.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CDPCLI / cdpy
2+
git+https://github.com/cloudera-labs/cdpy@main#egg=cdpy
3+
4+
# AWS SDKs
5+
awscli>=1.18.222
6+
boto>=2.49.0
7+
botocore>=1.12.249
8+
boto3>=1.9.249
9+
10+
# Ansible
11+
jmespath # community.general.json_query
12+
netaddr # ansible.netcommon.ipaddr
13+
14+
# Upstream dependencies
15+
docutils==0.14 # Required by cdpcli-beta 0.9.59
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hidden
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+
dependencies: [ 'cloudera.exe.common' ]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
3+
- name: Validate the CDP Public Cloud environment configuration
4+
ansible.builtin.import_role:
5+
name: cloudera.exe.platform
6+
tasks_from: validate.yml
7+
environment: "{{ env_vars }}"
8+
tags: always
9+
10+
- name: Install the CDP Public Cloud environment
11+
block:
12+
- name: Initialize the CDP Public Cloud environment for setup
13+
ansible.builtin.import_role:
14+
name: cloudera.exe.platform
15+
tasks_from: initialize_setup.yml
16+
environment: "{{ env_vars }}"
17+
18+
- name: Set up the CDP Public Cloud environment
19+
ansible.builtin.import_role:
20+
name: cloudera.exe.platform
21+
tasks_from: setup.yml
22+
environment: "{{ env_vars }}"
23+
tags: setup
24+
25+
- name: Teardown the CDP Public Cloud environment
26+
block:
27+
- name: Initialize the CDP Public Cloud environment for teardown
28+
ansible.builtin.import_role:
29+
name: cloudera.exe.platform
30+
tasks_from: initialize_teardown.yml
31+
environment: "{{ env_vars }}"
32+
33+
- name: Tear down the CDP Public Cloud environment
34+
ansible.builtin.import_role:
35+
name: cloudera.exe.platform
36+
tasks_from: teardown.yml
37+
environment: "{{ env_vars }}"
38+
tags: teardown
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# cloud/aws
2+
skip/python2
3+
setup/once/setup_infra
4+
needs/target/exec_cdp
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
- name: Read CDP Public Cloud environment variables
4+
ansible.builtin.include_vars:
5+
file: cdp.yml
6+
name: __cdp
7+
tags: always
8+
9+
- name: Combine CDP Public Cloud environment variables with runtime variables
10+
ansible.builtin.set_fact:
11+
globals: "{{ __cdp.globals | default({}) | combine(globals | default({}), recursive=True) }}"
12+
env: "{{ __cdp.env | default({}) | combine(env | default({}), recursive=True) }}"
13+
tags: always
14+
15+
- name: Manage the CDP Public Cloud environment
16+
ansible.builtin.import_role:
17+
name: exec_cdp
18+
tags: always
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
3+
# Light-duty Datalake
4+
# Level 1 networking (public/private)
5+
6+
env:
7+
name: "{{ globals.name_prefix }}-{{ globals.infra_type}}-lgt-l1-test"
8+
cdp:
9+
credential:
10+
name: "{{ globals.name_prefix }}-{{ globals.infra_type }}-lgt-l1-test"
11+
datalake:
12+
scale: LIGHT_DUTY # same as env.enable_ha=False
13+
tunnel: yes
14+
public_endpoint_access: yes
15+
workload_analytics: no
16+
teardown:
17+
delete_credential: yes
18+
azure:
19+
single_resource_group: yes
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# cloud/aws
2+
skip/python2
3+
setup/once/setup_infra
4+
needs/target/exec_cdp
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
- name: Read CDP Public Cloud environment variables
4+
ansible.builtin.include_vars:
5+
file: cdp.yml
6+
name: __cdp
7+
tags: always
8+
9+
- name: Combine CDP Public Cloud environment variables with runtime variables
10+
ansible.builtin.set_fact:
11+
globals: "{{ __cdp.globals | default({}) | combine(globals | default({}), recursive=True) }}"
12+
env: "{{ __cdp.env | default({}) | combine(env | default({}), recursive=True) }}"
13+
tags: always
14+
15+
- name: Manage the CDP Public Cloud environment
16+
ansible.builtin.import_role:
17+
name: exec_cdp
18+
tags: always
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
3+
# Medium-duty (HA) Datalake
4+
# Level 1 networking (public/private)
5+
6+
env:
7+
name: "{{ globals.name_prefix }}-{{ globals.infra_type}}-md-l1-test"
8+
cdp:
9+
credential:
10+
name: "{{ globals.name_prefix }}-{{ globals.infra_type }}-md-l1-test"
11+
datalake:
12+
scale: MEDIUM_DUTY_HA # same as env.enable_ha=True
13+
tunnel: yes
14+
public_endpoint_access: yes
15+
workload_analytics: no
16+
teardown:
17+
delete_credential: yes
18+
azure:
19+
single_resource_group: yes

0 commit comments

Comments
 (0)