Because of listing visibility, if no actions are assigned to a user for
an individual resource, it's excluded from the list. This is fine and
good. However, when we made a change in 0.2.0 to restrict the
information returned from listing for the anonymous user for scopes and
auth methods, it exposed the fact that because of the way this
visibility works we had to add `read` to scopes by default -- thereby
rather defeating the purpose of restricting what goes back to `u_anon`
requests.
The purpose of "no-op" is to never be used for real actions within the
API, but as something that can be granted to specifically enable
visibility for the targeted user. This makes the controls over list
visibility much more granular.
// Verify it is a group created after the test setup's default group
assert.True(gotCreateTime.After(defaultCreated),"New group should have been created after default group. Was created %v, which is after %v",gotCreateTime,defaultCreated)
assert.True(gotUpdateTime.After(defaultCreated),"New group should have been updated after default group. Was updated %v, which is after %v",gotUpdateTime,defaultCreated)
// Verify it is a group updated after it was created
assert.True(gotUpdateTime.After(created),"Updated group should have been updated after it's creation. Was updated %v, which is after %v",gotUpdateTime,created)
require.NoError(err,"Error converting proto to timestamp")
// Verify it is a catalog created after the test setup's default catalog
assert.True(gotCreateTime.After(defaultHcCreated),"New catalog should have been created after default catalog. Was created %v, which is after %v",gotCreateTime,defaultHcCreated)
require.NoError(err,"Error converting proto to timestamp")
// Verify it is a set created after the test setup's default set
assert.True(gotCreateTime.After(defaultHcCreated),"New set should have been created after default set. Was created %v, which is after %v",gotCreateTime,defaultHcCreated)
// Verify it is a set updated after it was created
// TODO: This is currently failing.
assert.True(gotUpdateTime.After(hCreated),"Updated set should have been updated after it's creation. Was updated %v, which is after %v",gotUpdateTime,hCreated)
// Verify it is a set created after the test setup's default set
assert.True(gotCreateTime.After(defaultHcCreated),"New host should have been created after default host. Was created %v, which is after %v",gotCreateTime,defaultHcCreated)
assert.True(gotUpdateTime.After(defaultHcCreated),"New host should have been updated after default host. Was updated %v, which is after %v",gotUpdateTime,defaultHcCreated)
// Verify it is a set updated after it was created
// TODO: This is currently failing.
assert.True(gotUpdateTime.After(hCreated),"Updated set should have been updated after it's creation. Was updated %v, which is after %v",gotUpdateTime,hCreated)
// Verify it is a role created after the test setup's default role
assert.True(gotCreateTime.After(defaultCreated),"New role should have been created after default role. Was created %v, which is after %v",gotCreateTime,defaultCreated)
assert.True(gotUpdateTime.After(defaultCreated),"New role should have been updated after default role. Was updated %v, which is after %v",gotUpdateTime,defaultCreated)
require.NoError(err,"Error converting proto to timestamp")
// Verify it is a role updated after it was created
assert.True(gotUpdateTime.After(created),"Updated role should have been updated after it's creation. Was updated %v, which is after %v",gotUpdateTime,created)
// Verify it is a set updated after it was created
// TODO: This is currently failing.
assert.True(gotUpdateTime.After(hCreated),"Updated target should have been updated after it's creation. Was updated %v, which is after %v",gotUpdateTime,hCreated)