#!/bin/bash
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved.
# 
# Since: July, 2018
# Author: gerald.venzl@oracle.com
# Description: Runs all 12cR2 related tests for Oracle Database Docker containers
# 
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#

source ./helperFunctions.sh

###################### TEST 12.2.0.2 EE lowercase PDB name ###########################

# Run 12.2.0.1 EE lowercase PDB name
runContainerTest "12.2.0.1 EE lowercase PDB name" "12.2.0.1-EE-lowercase-pdb" "oracle/database:12.2.0.1-ee" "ORCLTEST" "mypdb"

###################### TEST 12.2.0.1 EE default ###########################

# Run 12.2.0.1 EE default container
runContainerTest "12.2.0.1 EE default database" "12.2.0.1-EE-default" "oracle/database:12.2.0.1-ee"

###################### TEST 12.2.0.1 EE custom DB ###########################

# Run 12.2.0.1 EE custom container
runContainerTest "12.2.0.1-EE-custom database" "12.2.0.1-EE-custom" "oracle/database:12.2.0.1-ee" "TEST"

###################### TEST 12.2.0.1 SE2 default ###########################

# Run 12.2.0.1 SE2 default container
runContainerTest "12.2.0.1 SE2 default database" "12.2.0.1-SE2-default" "oracle/database:12.2.0.1-se2"

###################### TEST 12.2.0.1 EE lowercase ORACLE_SID ###########################

runContainerTest "12.2.0.1 EE lowercase ORACLE_SID" "12.2.0.1-EE-lowercase_ORACLE_SID" "oracle/database:12.2.0.1-ee" "orcltest" "PDB1"
