Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ tmp
sqlnet.log
Gemfile.lock
*.zip
.vagrant
.idea
spec/support/custom_config.rb
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,7 @@ Review `spec/spec_helper.rb` to see default schema/user names and database names

##### Prepare database

* With local [Vagrant](https://www.vagrantup.com) based Oracle XE database.

Download Oracle XE database ```oracle-xe-11.2.0-1.0.x86_64.rpm.zip``` from [Oracle Home page](http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html) and put it into project home directory.

From project home directory run ```vagrant up``` command to build fully functioning **Centos 6.6** virtual machine with installed Oracle XE database.

* Within other Oracle Database create Oracle database schema for test purposes.
In an Oracle Database create the following schemas for test purposes.

SQL> CREATE USER hr IDENTIFIED BY hr;
SQL> GRANT unlimited tablespace, create session, create table, create sequence, create procedure, create type, create view, create synonym TO hr;
Expand All @@ -210,12 +204,6 @@ Review `spec/spec_helper.rb` to see default schema/user names and database names

##### Run tests

* Run tests with local Vagrant based Oracle XE database

USE_VM_DATABASE=Y rake spec

* Run tests with other Oracle database

rake spec

LINKS
Expand Down
38 changes: 0 additions & 38 deletions Vagrantfile

This file was deleted.

14 changes: 1 addition & 13 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,14 @@
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each { |f| require f }

if ENV["USE_VM_DATABASE"] == "Y"
DATABASE_NAME = "XE"
else
DATABASE_NAME = ENV["DATABASE_NAME"] || "orcl"
end

DATABASE_NAME = ENV["DATABASE_NAME"] || "orcl"
DATABASE_SERVICE_NAME = ENV["DATABASE_SERVICE_NAME"] || DATABASE_NAME
DATABASE_HOST = ENV["DATABASE_HOST"] || "localhost"
DATABASE_PORT = (ENV["DATABASE_PORT"] || 1521).to_i
DATABASE_USERS_AND_PASSWORDS = [
[ENV["DATABASE_USER"] || "hr", ENV["DATABASE_PASSWORD"] || "hr"],
[ENV["DATABASE_USER2"] || "arunit", ENV["DATABASE_PASSWORD2"] || "arunit"]
]
if ENV["USE_VM_DATABASE"] == "Y"
RSpec.configure do |config|
config.before(:suite) do
TestDb.build
end
end
end

def oracle_error_class
unless defined?(JRUBY_VERSION)
Expand Down
9 changes: 0 additions & 9 deletions spec/support/file_check_script.sh

This file was deleted.

149 changes: 0 additions & 149 deletions spec/support/test_db.rb

This file was deleted.