Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] [Meta] Spaces follow up tasks #82415

Closed
13 tasks done
jgowdyelastic opened this issue Nov 3, 2020 · 4 comments
Closed
13 tasks done

[ML] [Meta] Spaces follow up tasks #82415

jgowdyelastic opened this issue Nov 3, 2020 · 4 comments
Assignees

Comments

@jgowdyelastic
Copy link
Member

jgowdyelastic commented Nov 3, 2020

@jgowdyelastic jgowdyelastic self-assigned this Nov 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@jgowdyelastic
Copy link
Member Author

Additional tasks for #64172

@jgowdyelastic
Copy link
Member Author

jgowdyelastic commented Nov 18, 2020

API test ideas

Notes on the kind of api tests needed.

Job foo doesn't exist

  • call /api/ml/anomaly_detectors/foo, expect 404
  • call /api/ml/anomaly_detectors/foo* expect empty jobs list

Job foo does exist, but is in different space.

  • call /api/ml/anomaly_detectors/foo, expect 404
  • call /api/ml/anomaly_detectors/foo* expect empty jobs list

Create group test_group and add a job to it

  • call /api/ml/anomaly_detectors/test_group, expect correct job.
  • call /api/ml/anomaly_detectors/test_group*, expect correct job.
  • repeat but with job in different space

Create two spaces, space 1 and space 2

  • Create a job in space 1.
    From space 2:
    • Call `job_summary, ensure the job is not listed.
    • Ensure the job cannot be opened, closed or deleted.

With a user who does not have access to space 2

  • Create a job in space 1 and space 2. call /api/ml/saved_objects/jobs_spaces' ensure space 2 is not listed.

@pheyos
Copy link
Member

pheyos commented Dec 10, 2020

Initial API tests done in #84789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants