Skip to content

Commit 7e89005

Browse files
committed
Finich migration to oracledb
1 parent f07856c commit 7e89005

File tree

4 files changed

+27
-20
lines changed

4 files changed

+27
-20
lines changed

roles/oracle_post_install/tasks/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
# post instalation tasks
33

4-
# - name: python2 cx_Oracle drivers
4+
# - name: python2 oracledb drivers
55
# yum:
6-
# name=python2-cx_Oracle
6+
# name=python2-oracledb
77
# state=latest
88
# disable_gpg_check=yes
99

10-
- name: Python cx_Oracle platform drivers
11-
shell: "/usr/libexec/platform-python -m pip install --user cx_Oracle"
12-
failed_when: False # install cx_Oracle drivers for platform python
10+
- name: Python oracledb platform drivers
11+
shell: "/usr/libexec/platform-python -m pip install --user oracledb"
12+
failed_when: False # install oracledb drivers for platform python
1313
become: yes
1414
become_user: "{{ oracle_os_user }}"
1515

16-
- name: Python cx_Oracle drivers
16+
- name: Python oracledb drivers
1717
pip:
18-
name: cx_Oracle
18+
name: oracledb
1919
extra_args: --user
2020
become: yes
2121
become_user: "{{ oracle_os_user }}"

tests/integration/targets/test_oracle_sql/tasks/dbms_output.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,35 @@
1616
<<: *con_param
1717
script: |
1818
begin
19-
dbms_output.put_line('This is the cx_Oracle manual');
19+
dbms_output.put_line('This is the oracledb manual');
2020
dbms_output.put_line('Demonstrating how to use DBMS_OUTPUT');
2121
end;
2222
/
2323
register: _
2424
failed_when: |
2525
_.failed or
26-
'cx_Oracle manual' not in _.output_lines[0] or
26+
'oracledb manual' not in _.output_lines[0] or
2727
'Demonstrating' not in _.output_lines[1]
2828
2929
- name: execute procedure with dbms_ouput.put_line() (ignoring case)
3030
oracle_sql:
3131
<<: *con_param
3232
script: |
3333
begin
34-
dbms_output.PUt_lINe('This is the cx_Oracle manual');
34+
dbms_output.PUt_lINe('This is the oracledb manual');
3535
end;
3636
/
3737
register: _
3838
failed_when: |
3939
_.failed or
40-
'cx_Oracle manual' not in _.output_lines[0]
40+
'oracledb manual' not in _.output_lines[0]
4141
4242
- name: execute two procedures with dbms_ouput.put_line()
4343
oracle_sql:
4444
<<: *con_param
4545
script: |
4646
begin
47-
dbms_output.put_line('This is the cx_Oracle manual');
47+
dbms_output.put_line('This is the oracledb manual');
4848
end;
4949
/
5050
begin
@@ -54,7 +54,7 @@
5454
register: _
5555
failed_when: |
5656
_.failed or
57-
'cx_Oracle manual' not in _.output_lines[0] or
57+
'oracledb manual' not in _.output_lines[0] or
5858
'Demonstrating' not in _.output_lines[1]
5959
6060
- name: execute procedure without dbms_ouput.put_line()

tests/integration/targets/test_oracle_tnsnames/tasks/dbms_output.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,35 @@
1414
<<: *con_param
1515
script: |
1616
begin
17-
dbms_output.put_line('This is the cx_Oracle manual');
17+
dbms_output.put_line('This is the oracledb manual');
1818
dbms_output.put_line('Demonstrating how to use DBMS_OUTPUT');
1919
end;
2020
/
2121
register: _
2222
failed_when: |
2323
_.failed or
24-
'cx_Oracle manual' not in _.output_lines[0] or
24+
'oracledb manual' not in _.output_lines[0] or
2525
'Demonstrating' not in _.output_lines[1]
2626
2727
- name: execute procedure with dbms_ouput.put_line() (ignoring case)
2828
oracle_sql:
2929
<<: *con_param
3030
script: |
3131
begin
32-
dbms_output.PUt_lINe('This is the cx_Oracle manual');
32+
dbms_output.PUt_lINe('This is the oracledb manual');
3333
end;
3434
/
3535
register: _
3636
failed_when: |
3737
_.failed or
38-
'cx_Oracle manual' not in _.output_lines[0]
38+
'oracledb manual' not in _.output_lines[0]
3939
4040
- name: execute two procedures with dbms_ouput.put_line()
4141
oracle_sql:
4242
<<: *con_param
4343
script: |
4444
begin
45-
dbms_output.put_line('This is the cx_Oracle manual');
45+
dbms_output.put_line('This is the oracledb manual');
4646
end;
4747
/
4848
begin
@@ -52,7 +52,7 @@
5252
register: _
5353
failed_when: |
5454
_.failed or
55-
'cx_Oracle manual' not in _.output_lines[0] or
55+
'oracledb manual' not in _.output_lines[0] or
5656
'Demonstrating' not in _.output_lines[1]
5757
5858
- name: execute procedure without dbms_ouput.put_line()

tests/module_args/module_args.profile.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
"ANSIBLE_MODULE_ARGS": {
3-
"mode": "sysdba",
3+
"mode": "normal",
4+
"hostname": "adb.eu-frankfurt-1.oraclecloud.com",
5+
"port": "1522",
6+
"service_name": "gc7d17cae05_high.adb.oraclecloud.com",
7+
"dsn": "(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=adb.eu-frankfurt-1.oraclecloud.com))(connect_data=(service_name=gc7d17cae05212a_rx3imkw1cjedzw68_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))",
8+
"user": "TEST",
9+
"password": "Tst123456789",
410
"profile": "TEST_PROFILE",
11+
"state": "absent",
512
"attributes": {
613
"PASSWORD_REUSE_MAX": "10"
714
}

0 commit comments

Comments
 (0)