- Zip up fedora-data directory:
cd /opt/
tar zcvf fedora-data.tar.gz fedora-data/
RSolr::Error::Http - 401 Unauthorized Error: {"responseHeader":{"status":401,"QTime":77},"error":{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"RunExecutableListener is deprecated and disabled by default for security reasons. Legacy applications still using it must explicitely pass '-Dsolr.enableRunExecutableListener=true' to the Solr command line. Be aware that you should really disable API-based config editing at the same time, using '-Ddisable.configEdit=true'!","code":401}} URI: http://127.0.0.1:8983/solr/nurax/update?wt=json&commit=true Request Headers: {"Content-Type"=>"application/json"} Request Data: "[{\"system_create_dtsi\":\"2019-01-25T14:11:03Z\",\"system_modified_dtsi\":\"2019-01-25T14:11:03Z\",\"has_model_ssim\":\"Image\",\"id\":\"9p290943s\",\"accessControl_ssim\":\"ec3ec7b6-2632-4f45-a824-60706358c1f7\",\"depositor_ssim\":\"bess@curationexperts.com\",\"depositor_tesim\":\"bess@curationexperts.com\",\"title_tes |
Finished in 33 minutes 38 seconds (files took 3.48 seconds to load) | |
605 examples, 9 failures, 4 pending | |
Failed examples: | |
rspec ./spec/controllers/downloads_controller_spec.rb:112 # DownloadsController#show with a GenericWork downloads a zip | |
rspec ./spec/features/file_set/versioning_spec.rb:16 # FileSet versioning: sets the file set title and label to new and reverted file versions | |
rspec ./spec/features/generic_work/add_multiple_creators_spec.rb:27 # Create a Generic Work with multiple Creators a logged in user should have css ".tt-suggestion" | |
rspec ./spec/features/generic_work/batch_upload_and_delete_spec.rb:17 # Generic File batch uploading when logged in as a PSU user uploading a new work enforces a workflow |
- hosts: '{{ host }}' | |
name: ensure python is installed for ansible | |
user: ubuntu | |
gather_facts: false | |
pre_tasks: | |
- name: update apt-get | |
raw: sudo apt-get update | |
- name: install python for ansible | |
raw: sudo apt-get -y install python-simplejson |
emory:bpc0v | |
emory:7t8dc | |
emory:7v24q | |
emory:bq2dn | |
emory:pg1sx | |
emory:pkn0t | |
emory:92ht9 | |
emory:br00v | |
emory:93bm1 | |
emory:r9q8n |
require 'nokogiri' | |
require 'open-uri' | |
# Get a Nokogiri::HTML:Document for the page we're interested in... | |
doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove')) | |
# Do funky things with it using Nokogiri::XML::Node methods... | |
#### |
# Start the app with EXPLAIN_PARTIALS=true to show locations of view partials | |
if Rails.env.development? and ENV['EXPLAIN_PARTIALS'] | |
module ActionView | |
class PartialRenderer | |
def render_with_explanation(*args) | |
rendered = render_without_explanation(*args).to_s | |
# Note: We haven't figured out how to get a path when @template is nil. | |
start_explanation = "\n<!-- START PARTIAL #{@template.inspect} -->\n" | |
end_explanation = "\n<!-- END PARTIAL #{@template.inspect} -->\n" | |
start_explanation.html_safe + rendered + end_explanation.html_safe |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
# Brazil maps are losing their model type upon import. I think it is because some of the | |
# values contain square brackets. It is happening during the csv_attributes method | |
context "make a Hash of the CSV values attached to their headers" do | |
context "how things work now" do | |
let(:metadata_file) { "#{fixture_path}/csv/brazil.csv" } | |
let(:csv) { ::CSV.read(metadata_file) } | |
let(:header) { csv[0] } | |
let(:body) { csv[1] } | |
it "lines up the header and body fields consitently" do | |
attrs = Importer::CSV.csv_attributes(header, body) |
require 'rubygems' | |
require 'active-fedora' | |
require 'open-uri' | |
require File.expand_path(File.dirname(__FILE__) + '/boot') | |
class DeleteFedoraObjects | |
attr_reader :repository | |
attr_reader :workflow | |
attr_reader :registration_robot |