-
Notifications
You must be signed in to change notification settings - Fork 42
remove idle suffix from bg deploy #1697
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,127 +37,6 @@ paths: | |
| $ref: "#/definitions/Info" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/files: | ||
| get: | ||
| summary: "" | ||
| description: "Retrieves all Multi-Target Application files " | ||
| operationId: "getMtaFiles" | ||
| produces: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space with mtas" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "Filter mtas by namespace" | ||
| required: false | ||
| type: "string" | ||
| responses: | ||
| 200: | ||
| description: "OK" | ||
| schema: | ||
| type: "array" | ||
| items: | ||
| $ref: "#/definitions/FileMetadata" | ||
| security: | ||
| - oauth2: [] | ||
| post: | ||
| summary: "" | ||
| description: "Uploads a Multi Target Application archive or an Extension Descriptor " | ||
| operationId: "uploadMtaFile" | ||
| consumes: | ||
| - "multipart/form-data" | ||
| produces: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space you wish to deploy in" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "file namespace" | ||
| required: false | ||
| type: "string" | ||
| responses: | ||
| 200: | ||
| description: "successful operation" | ||
| schema: | ||
| $ref: "#/definitions/FileMetadata" | ||
| 201: | ||
| description: "Created" | ||
| schema: | ||
| $ref: "#/definitions/FileMetadata" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/files/async: | ||
| post: | ||
| summary: "" | ||
| description: "Uploads a Multi Target Application archive or an Extension Descriptor\ | ||
| \ from a remote endpoint" | ||
| operationId: "startUploadFromUrl" | ||
| consumes: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space you wish to deploy in" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "file namespace" | ||
| required: false | ||
| type: "string" | ||
| - in: "body" | ||
| name: "body" | ||
| description: "URL reference to a remote file" | ||
| required: false | ||
| schema: | ||
| $ref: "#/definitions/FileUrl" | ||
| responses: | ||
| 202: | ||
| description: "Accepted" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/files/jobs/{jobId}: | ||
| get: | ||
| summary: "" | ||
| description: "Gets the status of an async upload job" | ||
| operationId: "getAsyncUploadJob" | ||
| produces: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space you wish to deploy in" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "file namespace" | ||
| required: false | ||
| type: "string" | ||
| - name: "jobId" | ||
| in: "path" | ||
| description: "ID of the upload job" | ||
| required: true | ||
| type: "string" | ||
| responses: | ||
| 200: | ||
| description: "OK" | ||
| schema: | ||
| $ref: "#/definitions/AsyncUploadResult" | ||
| 201: | ||
| description: "Created" | ||
| schema: | ||
| $ref: "#/definitions/AsyncUploadResult" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/mtas: | ||
| get: | ||
| summary: "" | ||
|
|
@@ -403,66 +282,6 @@ securityDefinitions: | |
| flow: "password" | ||
| scopes: {} | ||
| definitions: | ||
| AsyncUploadResult: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| type: "object" | ||
| properties: | ||
| status: | ||
| type: "string" | ||
| readOnly: true | ||
| enum: | ||
| - "RUNNING" | ||
| - "FINISHED" | ||
| - "ERROR" | ||
| bytes_processed: | ||
| type: "integer" | ||
| format: "int64" | ||
| readOnly: true | ||
| error: | ||
| type: "string" | ||
| readOnly: true | ||
| file: | ||
| readOnly: true | ||
| $ref: "#/definitions/FileMetadata" | ||
| mta_id: | ||
| type: "string" | ||
| readOnly: true | ||
| client_actions: | ||
| type: "array" | ||
| readOnly: true | ||
| items: | ||
| type: "string" | ||
| enum: | ||
| - "RETRY_UPLOAD" | ||
| FileMetadata: | ||
| type: "object" | ||
| properties: | ||
| id: | ||
| type: "string" | ||
| readOnly: true | ||
| name: | ||
| type: "string" | ||
| readOnly: true | ||
| size: | ||
| type: "integer" | ||
| readOnly: true | ||
| digest: | ||
| type: "string" | ||
| readOnly: true | ||
| digestAlgorithm: | ||
| type: "string" | ||
| readOnly: true | ||
| space: | ||
| type: "string" | ||
| readOnly: true | ||
| namespace: | ||
| type: "string" | ||
| readOnly: true | ||
| FileUrl: | ||
| type: "object" | ||
| properties: | ||
| file_url: | ||
| type: "string" | ||
| readOnly: true | ||
| Info: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert the changes to this file. |
||
| type: "object" | ||
| properties: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,18 @@ | ||
| package org.cloudfoundry.multiapps.controller.core.cf.detect; | ||
|
|
||
| import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
|
||
| import java.util.stream.Stream; | ||
|
|
||
| import org.junit.jupiter.params.ParameterizedTest; | ||
| import org.junit.jupiter.params.provider.Arguments; | ||
| import org.junit.jupiter.params.provider.MethodSource; | ||
|
|
||
| import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
|
||
| class AppSuffixDeterminerTest { | ||
|
|
||
| static Stream<Arguments> testAppSuffixDeterminer() { | ||
| return Stream.of( | ||
| //@formatter:off | ||
| //@formatter:off | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still necessary? |
||
| // (1) Keep original app names is not set and the process is not after resume phase | ||
| Arguments.of(false, false, false), | ||
| // (2) Keep original app names is set but the process is not after resume phase | ||
|
|
@@ -29,6 +29,6 @@ static Stream<Arguments> testAppSuffixDeterminer() { | |
| @MethodSource | ||
| void testAppSuffixDeterminer(boolean keepOriginalNamesAfterDeploy, boolean isAfterResumePhase, boolean shouldAppendApplicationSuffix) { | ||
| AppSuffixDeterminer appSuffixDeterminer = new AppSuffixDeterminer(keepOriginalNamesAfterDeploy, isAfterResumePhase); | ||
| assertEquals(shouldAppendApplicationSuffix, appSuffixDeterminer.shouldAppendApplicationSuffix()); | ||
| assertEquals(shouldAppendApplicationSuffix, appSuffixDeterminer.shouldAppendIdleSuffix()); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not delete this. Must be checked why always deleted after build