def test_upload_encrypted_blob(): with tempfile.NamedTemporaryFile() as source_file: source_file.write(b'test') encryption.upload_encrypted_blob(BUCKET, source_file.name, 'test_encrypted_upload_blob', TEST_ENCRYPTION_KEY)
def test_upload_encrypted_blob(cloud_config): with tempfile.NamedTemporaryFile() as source_file: source_file.write(b'test') encryption.upload_encrypted_blob(cloud_config.storage_bucket, source_file.name, 'test_encrypted_upload_blob', TEST_ENCRYPTION_KEY)
def test_upload_encrypted_blob(cloud_config): with tempfile.NamedTemporaryFile() as source_file: source_file.write(b'test') encryption.upload_encrypted_blob( cloud_config.storage_bucket, source_file.name, 'test_encrypted_upload_blob', TEST_ENCRYPTION_KEY)
def test_upload_encrypted_blob(): with tempfile.NamedTemporaryFile() as source_file: source_file.write(b'test') encryption.upload_encrypted_blob( BUCKET, source_file.name, 'test_encrypted_upload_blob', TEST_ENCRYPTION_KEY)