-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update install-mock-server-cf.md #75
Open
ekaterina-mitova
wants to merge
1
commit into
main
Choose a base branch
from
ekaterina-mitova-patch-12
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,24 +1,28 @@ | ||||||
# Option 1 - Install Mock Server in SAP BTP Cloud Foundry Runtime | ||||||
# Option 1 - Deploy a Mock Server in SAP BTP, Cloud Foundry Runtime | ||||||
|
||||||
## Pre requisite | ||||||
The Remote Service Integration tutorial was executed and mock server was deployed on CF and destination was created following steps [here](../../../remote-service/install-mock-server/install-mock-server-cf.md) | ||||||
## Prerequisite | ||||||
* You have completed the Remote Service Integration tutorial. | ||||||
* You have deployed a mock server in the SAP BTP, Cloud Foundry runtime. | ||||||
* You have created a destination using the following steps [here](../../../remote-service/install-mock-server/install-mock-server-cf.md). | ||||||
|
||||||
## Re-Deploy the Mock Server Application | ||||||
## Redeploy the Mock Server Application | ||||||
|
||||||
In this section you would redeploy the mock server and bind it to the Event Mesh instance so that the mock server can send events. | ||||||
|
||||||
In this section you would redeploy the mock server and bind it to Event Mesh instance so that mock server can emit events. | ||||||
1. In the menu, choose **File** and then choose **Open Folder** from the dropdown menu. | ||||||
|
||||||
2. To open the mock server project, choose **projects** → **cloud-extension-ecc-business-process** and then choose **Open**. | ||||||
|
||||||
3. In the project folder, open **mta.yaml** file | ||||||
3. In the project folder, open the **mta.yaml** file: | ||||||
|
||||||
- add the below code snippet to the **resources** section | ||||||
1. Add the following code snippet to the `resources` section: | ||||||
|
||||||
```yaml | ||||||
- name: inicdent-management-messaging | ||||||
type: org.cloudfoundry.existing-service | ||||||
``` | ||||||
|
||||||
- Adds the below entry in the `requires` section of `mock-srv` module | ||||||
2. Adds the following entry in the `requires` section of the `mock-srv` module: | ||||||
|
||||||
```yaml | ||||||
- name: inicdent-management-messaging | ||||||
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.
Suggested change
|
||||||
|
@@ -29,15 +33,17 @@ In this section you would redeploy the mock server and bind it to Event Mesh ins | |||||
5. When the project is built successfully, you will see a new **mta_archives** folder in your project with the **Mockserver_1.0.0.mtar** file inside. Right-click that file and choose **Deploy MTA Archive**. | ||||||
|
||||||
## Deploy the Incident Management Application | ||||||
|
||||||
1. In the menu, choose **File** and then choose **Open Folder** from the dropdown menu. | ||||||
1. To open the Incident Managemnt project, choose **projects** → **incident-nanagement** and then choose **Open**. | ||||||
2. Navigate to package.json and change credentials to | ||||||
2. To open the Incident Management project, choose **projects** → **incident-nanagement** and then choose **Open**. | ||||||
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.
Suggested change
|
||||||
3. Navigate to the **package.json** file and change the credentials to: | ||||||
|
||||||
```json | ||||||
"credentials": { | ||||||
"destination": "<destination_name>", | ||||||
"path": "/v2/odata/v4/api-business-partner" | ||||||
} | ||||||
``` | ||||||
**Note** - As **destination_name** you must enter the name of the destination created while installing mock server to SAP BTP Cloud Foundry Runtime. | ||||||
>Note: Replase **destination_name** with the name of the destination you have created when installing mock server in the SAP BTP, Cloud Foundry Runtime. | ||||||
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.
Suggested change
|
||||||
|
||||||
2. Follow the steps in the [Deploy to Cloud Foundry tutorial](./deploy-to-cf.md). | ||||||
2. Follow the steps in the [Deploy to Cloud Foundry](./deploy-to-cf.md) tutorial. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.