- test "store json-encoded link with properties hash" do
- post "/arvados/v1/links", {
- :link => {
- :link_class => 'test',
- :name => 'test',
- :properties => {:foo => :bar}
- }.to_json,
- :format => :json
- }, auth(:active)
- assert_response :success
- end
+ {
+ api_client_authorization: {scopes: []},
+
+ human: {properties: {eye_color: 'gray'}},
+
+ job: {
+ repository: 'foo',
+ runtime_constraints: {docker_image: 'arvados/apitestfixture'},
+ script: 'hash',
+ script_version: 'master',
+ script_parameters: {pattern: 'foobar'},
+ tasks_summary: {todo: 0},
+ },
+
+ job_task: {parameters: {pattern: 'foo'}},
+
+ link: {link_class: 'test', name: 'test', properties: {foo: :bar}},
+
+ node: {info: {uptime: 1234}},
+
+ pipeline_instance: {
+ components: {"job1" => {parameters: {pattern: "xyzzy"}}},
+ components_summary: {todo: 0},
+ properties: {test: true},
+ },
+
+ pipeline_template: {
+ components: {"job1" => {parameters: {pattern: "xyzzy"}}},
+ },
+
+ specimen: {properties: {eye_color: 'meringue'}},
+
+ trait: {properties: {eye_color: 'brown'}},