Skip to content

Commit

Permalink
Merge pull request #1965 from tqtu/MSF-26157
Browse files Browse the repository at this point in the history
CONFIG: MSF-26157 change environment testing

Reviewed-by: https://github.com/hung-nguyen-hoang
  • Loading branch information
gdgate authored Mar 14, 2024
2 parents 40fc84b + 9e861b6 commit d5e3737
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
3 changes: 1 addition & 2 deletions spec/environment/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ def branch_to_environment(branch)
def initial_secrets(env)
key_prefix = if env == 'development' then
'GD_DEV'
elsif env == 'testing' then
'GD_TEST'
else
# env == 'testing' is also utilizing staging1
'GD_STG'
end
{
Expand Down
22 changes: 11 additions & 11 deletions spec/environment/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@
module GoodData
module Environment
module ConnectionHelper
set_const :DEFAULT_DOMAIN, 'staging2-lcm-prod'
set_const :DEFAULT_SERVER, 'https://staging2-lcm-prod.intgdc.com'
set_const :DEFAULT_USER_URL, '/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa'
set_const :STAGING_URI, 'https://staging2-lcm-prod.intgdc.com/gdc/uploads/'
set_const :DEFAULT_DOMAIN, 'staging-lcm-prod'
set_const :DEFAULT_SERVER, 'https://staging-lcm-prod.intgdc.com'
set_const :DEFAULT_USER_URL, '/gdc/account/profile/e306b64fb4178785c9cf29c29b5e498a'
set_const :STAGING_URI, 'https://staging-lcm-prod.intgdc.com/gdc/uploads/'
set_const :LCM_ENVIRONMENT,
dev_server: 'staging2-lcm-dev.intgdc.com',
prod_server: 'staging2-lcm-prod.intgdc.com',
dev_organization: 'staging2-lcm-dev',
prod_organization: 'staging2-lcm-prod',
dev_server: 'staging-lcm-dev.intgdc.com',
prod_server: 'staging-lcm-prod.intgdc.com',
dev_organization: 'staging-lcm-dev',
prod_organization: 'staging-lcm-prod',
username: '[email protected]',
appstore_deploy_name: 'PRODUCTION_APPSTORE'
end

module ProcessHelper
set_const :PROCESS_ID, '7bc4b678-d1f6-4fb0-b1ee-513f4709bbf1'
set_const :PROCESS_ID, '756b5f0f-6412-4072-b8e2-f5c33624f497'
end

module ProjectHelper
set_const :PROJECT_ID, 'voyb6fcvdngwfyf722vn9cmbv7sq6mf6'
set_const :PROJECT_ID, 'kd39zwi3bii39ewe1skh6ldjfx7ebj7x'
end

module ScheduleHelper
set_const :SCHEDULE_ID, '5acdd513e4b01dce92b23505'
set_const :SCHEDULE_ID, '65f0f0ded245736d3f85dfb6'
end
end
end
12 changes: 6 additions & 6 deletions spec/lcm/integration/spec/others/data_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,28 +229,28 @@
expect(data).to eq File.open(file_path).read
end

it 'connect to redshift with BASIC authentication' do
xit 'connect to redshift with BASIC authentication' do
data_helper = GoodData::Helpers::DataSource.new(basic_params['input_source'])
file_path = data_helper.realize(basic_params)
data = File.open('spec/data/redshift_data2.csv').read
expect(data).to eq File.open(file_path).read
end

it 'connect to redshift with BASIC authentication without schema' do
xit 'connect to redshift with BASIC authentication without schema' do
data_helper = GoodData::Helpers::DataSource.new(basic_params_without_schema['input_source'])
file_path = data_helper.realize(basic_params_without_schema)
data = File.open('spec/data/redshift_data.csv').read
expect(data).to eq File.open(file_path).read
end

it 'connect to redshift with BASIC authentication and dynamic source' do
xit 'connect to redshift with BASIC authentication and dynamic source' do
data_helper = GoodData::Helpers::DataSource.new(basic_params_dynamic_source['dynamic_params']['input_source'])
file_path = data_helper.realize(basic_params_dynamic_source)
data = File.open('spec/data/redshift_data2.csv').read
expect(data).to eq File.open(file_path).read
end

it 'connect to redshift with BASIC authentication and url has parameter' do
xit 'connect to redshift with BASIC authentication and url has parameter' do
data_helper = GoodData::Helpers::DataSource.new(basic_params_url_parameters['input_source'])
file_path = data_helper.realize(basic_params_url_parameters)
data = File.open('spec/data/redshift_data2.csv').read
Expand All @@ -264,7 +264,7 @@
expect(data).to eq File.open(file_path).read
end

it 'connect to bigquery with BASIC authentication' do
xit 'connect to bigquery with BASIC authentication' do
encryption_key = ENV['GD_SPEC_PASSWORD'] || ENV['BIA_ENCRYPTION_KEY']
bigquery_secret = File.open('spec/environment/bigquery_encrypted').read
decrypted = GoodData::Helpers.decrypt(bigquery_secret, encryption_key)
Expand All @@ -282,7 +282,7 @@
expect(data).to eq File.open(file_path).read
end

it 'connect to mssql with BASIC authentication' do
xit 'connect to mssql with BASIC authentication' do
data_helper = GoodData::Helpers::DataSource.new(mssql_basic_params['input_source'])
file_path = data_helper.realize(mssql_basic_params)
data = File.open('spec/data/mssql_data.csv').read
Expand Down
6 changes: 3 additions & 3 deletions spec/project/full_process_schedule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
end
end

it "should be possible to download deployed process" do
xit "should be possible to download deployed process" do
process = @project.deploy_process('./spec/data/hello_world_process/hello_world.zip',
type: 'RUBY',
name: 'Test ETL zipped file Process')
Expand All @@ -253,7 +253,7 @@
end
end

it "should be able to redeploy via project" do
xit "should be able to redeploy via project" do
begin
process = @project.deploy_process('./spec/data/hello_world_process/hello_world.zip',
type: 'RUBY',
Expand All @@ -264,7 +264,7 @@
end
end

it "should be able to redeploy directly" do
xit "should be able to redeploy directly" do
begin
process1 = @project.deploy_process(
'./spec/data/hello_world_process/hello_world.zip',
Expand Down

0 comments on commit d5e3737

Please sign in to comment.