test/test_bigquery_client.rb in embulk-output-bigquery-0.5.0 vs test/test_bigquery_client.rb in embulk-output-bigquery-0.6.0
- old
+ new
@@ -30,11 +30,11 @@
{
'project' => JSON.parse(File.read(JSON_KEYFILE))['project_id'],
'dataset' => 'your_dataset_name',
'table' => 'your_table_name',
'auth_method' => 'json_key',
- 'json_keyfile' => JSON_KEYFILE,
+ 'json_keyfile' => File.read(JSON_KEYFILE),
'retries' => 3,
'timeout_sec' => 300,
'open_timeout_sec' => 300,
'job_status_max_polling_time' => 3600,
'job_status_polling_interval' => 10,
@@ -58,13 +58,9 @@
end
sub_test_case "client" do
def test_json_keyfile
assert_nothing_raised { BigqueryClient.new(least_task, schema).client }
- end
-
- def test_p12_keyfile
- # pending
end
end
sub_test_case "create_dataset" do
def test_create_dataset