Sha256: fe12151db1d332aa59f15dc5b8284cb9e5018d9f986907492654cee067ab0454
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
# frozen_string_literal: true # Author:: Justin Steele (<justin.steele@oracle.com>) # # Copyright (C) 2024, Stephen Pearson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Kitchen module Driver class Oci class Instance # setter methods that populate the details of OCI::Database::Models::CreateDatabaseDetails module DatabaseDetails def character_set database_details.character_set = config[:dbaas][:character_set] ||= "AL32UTF8" end def ncharacter_set database_details.ncharacter_set = config[:dbaas][:ncharacter_set] ||= "AL16UTF16" end def db_workload workload = config[:dbaas][:db_workload] ||= OCI::Database::Models::CreateDatabaseDetails::DB_WORKLOAD_OLTP database_details.db_workload = workload end def admin_password database_details.admin_password = config[:dbaas][:admin_password] ||= random_password(%w{# _ -}) end def db_name database_details.db_name = config[:dbaas][:db_name] ||= "dbaas1" end def pdb_name database_details.pdb_name = config[:dbaas][:pdb_name] ||= "pdb001" end def db_backup_config database_details.db_backup_config = OCI::Database::Models::DbBackupConfig.new.tap do |l| l.auto_backup_enabled = false end database_details end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kitchen-oci-1.17.0 | lib/kitchen/driver/oci/instance/database.rb |