opensearch-project / opensearch-project/flow-framework

[FEATURE] Run same tests for security enabled or disabled cluster

Open
#478 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
62
Forks
66
Avg merge
3d 20h
Merged PRs (30d)
20

Description

Is your feature request related to a problem?

Currently, we run different test suites for security enabled tests here, which is mostly checking for the roles and not actually testing the APIs with the response. Whereas our integ tests does that.

What solution would you like?

We should run the same integ tests suite for the plugin with security-enabled or disabled cluster with just changing the local cluster url to pick either https or http protocol based on the flag security-enabled=true or security-enabled=false.

What alternatives have you considered?

The current test suite which just checks for the role based access for security enabled cluster.

Do you have any additional context?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/test/java/org/opensearch/flowframework/rest/FlowFrameworkSecureRestApiIT.java and the integration tests in src/test/java/org/opensearch/flowframework/rest. Review how the cluster URL and security-enabled=true or security-enabled=false are selected. Done means the same integration test suite runs against both security-enabled and security-disabled clusters, using https or http as appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.