Skip to content

Commit

Permalink
Merge ee7d9e2 into 56ee7c9
Browse files Browse the repository at this point in the history
  • Loading branch information
jgebal committed Nov 3, 2021
2 parents 56ee7c9 + ee7d9e2 commit 0f49a30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Expand Up @@ -48,11 +48,12 @@ env:
- MAVEN_HOME=/usr/local/maven
- MAVEN_CFG=$HOME/.m2
matrix:
- ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_18:-18c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_19:-19c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_18:-18c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_19:-19c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
- ORACLE_VERSION="${DOCKER_TAG_21XE:-21c-xe-full}" CONNECTION_STR='127.0.0.1:1521/XEPDB1' DOCKER_OPTIONS='-e ORACLE_PASSWORD=oracle'

cache:
pip: true
Expand Down
15 changes: 9 additions & 6 deletions test/ut3_user/expectations/test_expectations_json.pkb
Expand Up @@ -68,9 +68,7 @@ create or replace package body test_expectations_json is
--Act
ut3_develop.ut.expect( l_actual ).to_equal( l_expected );
--Assert
l_expected_message := q'[%Diff: 20 differences found
%3 incorrect types, 4 unequal values, 13 missing properties
%Missing property: "Alexander Skarsg?rd" on path: $
l_expected_message := q'[%Missing property: "Alexander Skarsg?rd" on path: $
%Extra property: "Alexander Skarsgard" on path: $
%Missing property: "Alice Farmer" on path: $
%Extra property: "Clarke Peters" on path: $
Expand All @@ -93,6 +91,10 @@ create or replace package body test_expectations_json is
l_actual_message := ut3_tester_helper.main_helper.get_failed_expectations(1);
--Assert
ut.expect(l_actual_message).to_be_like(l_expected_message);
ut.expect(l_actual_message).to_be_like('%Diff: 20 differences found%');
ut.expect(l_actual_message).to_be_like('%13 missing properties%');
ut.expect(l_actual_message).to_be_like('%4 unequal values%');
ut.expect(l_actual_message).to_be_like('%3 incorrect types%');
end;

procedure null_json_variable
Expand Down Expand Up @@ -1556,9 +1558,7 @@ create or replace package body test_expectations_json is
--Act
ut3_develop.ut.expect( l_actual ).to_equal( l_expected );
--Assert
l_expected_message := q'[%Diff: 133 differences found, showing first 20
%132 unequal values, 1 missing properties
%Extra property: object on path: $[5]
l_expected_message := q'[%Extra property: object on path: $[5]
%Actual value: "5ce6ec46cb9977b050f15d97" was expected to be: "5ce6ec6660565269b16cf836" on path: $[0]."_id"
%Actual value: "5ce6ec469ba57bef5c421021" was expected to be: "5ce6ec66383ddbf3c400e3ed" on path: $[1]."_id"
%Actual value: "5ce6ec4632328a654d592cb6" was expected to be: "5ce6ec6600fb7aaee2d1243e" on path: $[3]."_id"
Expand All @@ -1582,6 +1582,9 @@ create or replace package body test_expectations_json is
l_actual_message := ut3_tester_helper.main_helper.get_failed_expectations(1);
--Assert
ut.expect(l_actual_message).to_be_like(l_expected_message);
ut.expect(l_actual_message).to_be_like('%Diff: 133 differences found, showing first 20%');
ut.expect(l_actual_message).to_be_like('%1 missing properties%');
ut.expect(l_actual_message).to_be_like('%132 unequal values%');
end;

procedure check_json_objects is
Expand Down

0 comments on commit 0f49a30

Please sign in to comment.