Skip to content

Commit

Permalink
Delete index in test
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Nov 26, 2024
1 parent 875b911 commit dc11c5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}

steps:
- name: Remove unnecessary files
run: |
rm -rf /usr/share/dotnet
rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Run start commands
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
# This step uses the setup-java Github action: https://github.com/actions/setup-java
Expand All @@ -52,13 +48,6 @@ jobs:
# build index management
- name: Checkout Branch
uses: actions/checkout@v4
- name: Check working space directory
run: du ${GITHUB_WORKSPACE} -h -d 1
- name: Get more space
run: |
df . -h
rm -rf ${GITHUB_WORKSPACE}/.git
df . -h
# This is a hack, but this step creates a link to the X: mounted drive, which makes the path
# short enough to work on Windows
- name: Build with Gradle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import org.opensearch.indexmanagement.indexstatemanagement.util.FAILURES
import org.opensearch.indexmanagement.indexstatemanagement.util.UPDATED_INDICES
import org.opensearch.indexmanagement.makeRequest
import org.opensearch.indexmanagement.waitFor
import org.opensearch.rest.RestRequest.Method.DELETE
import org.opensearch.rest.RestRequest.Method.POST

class RestRemovePolicyActionIT : IndexStateManagementRestTestCase() {
Expand Down Expand Up @@ -230,5 +231,9 @@ class RestRemovePolicyActionIT : IndexStateManagementRestTestCase() {

// otherwise, test cleanup cannot delete this index
updateIndexSetting(index1, IndexMetadata.SETTING_READ_ONLY, "false")
adminClient().makeRequest(
DELETE.toString(),
"/$index1",
)
}
}

0 comments on commit dc11c5b

Please sign in to comment.