Skip to content

Create a test that has user and origins statements with different stubjects #620

Closed

Description

@melvincarvalho

Suggested by @timbl , it would be good to have a test which tests users and origin combinations within different subjects.

Currently the ACL origin test looks as follows :

<#Owner> a <http://www.w3.org/ns/auth/acl#Authorization>;
  <http://www.w3.org/ns/auth/acl#accessTo> <https://localhost:3456/test/acl-tls/origin/test-folder/.acl>;
  <http://www.w3.org/ns/auth/acl#agent> <https://user1.databox.me/profile/card#me>;
  <http://www.w3.org/ns/auth/acl#origin> <http://example.org/>;
  <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>, <http://www.w3.org/ns/auth/acl#Control> .
  
<#Public> a <http://www.w3.org/ns/auth/acl#Authorization>;
  <http://www.w3.org/ns/auth/acl#accessTo> <./>;
  <http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Agent>;
  <http://www.w3.org/ns/auth/acl#origin> <http://example.org/>;
  <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .

We could create a new ACL and run one or more tests against it.

Activity

  1. melvincarvalho commented on Dec 14, 2017

    @melvincarvalho
    ContributorAuthor

    As part of this, it may be possible to clean up the text as per : #619 (comment)

  2. melvincarvalho commented on Dec 15, 2017

    @melvincarvalho
    ContributorAuthor

    Suggested test acl :

    <#Owner1> a <http://www.w3.org/ns/auth/acl#Authorization>;
      <http://www.w3.org/ns/auth/acl#accessTo> <https://localhost:3456/test/acl-tls/origin/test-folder/.acl>;
      <http://www.w3.org/ns/auth/acl#agent> <https://user1.databox.me/profile/card#me>;
      <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>, <http://www.w3.org/ns/auth/acl#Control>  .
    
    <#Owner2> a <http://www.w3.org/ns/auth/acl#Authorization>;
      <http://www.w3.org/ns/auth/acl#accessTo> <https://localhost:3456/test/acl-tls/origin/test-folder/.acl>;
      <http://www.w3.org/ns/auth/acl#origin> <http://example.org/>;
      <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>, <http://www.w3.org/ns/auth/acl#Control> .
    
  3. added this to the 4.1.0 milestone on Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions