Steps to reproduce:
It("returns a not found error", func() {
Expect(err).To(BeAssignableToTypeOf(apierrors.NotFoundError{}))
})
- Run the test, see it fails
Dev notes
The reposotiry performs a get via list. List should return an empty result in case the user is not authorised in the corresponding namespace.
When the repostiory lists the builds, it specifies the InNamespace option, however, that namespace option is not propagated when performing the list with the rest client
What we need to do is to make sure that this option is used when performing the rest client list.