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

Update install-mock-server-cf.md #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions documentation/eventing/deploy/cf/install-mock-server-cf.md
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: inicdent-management-messaging
- name: incident-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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: inicdent-management-messaging
- name: incident-management-messaging

Expand All @@ -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**.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. To open the Incident Management project, choose **projects** → **incident-nanagement** and then choose **Open**.
2. To open the Incident Management project, choose **projects** → **incident-management** and then choose **Open**.

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>Note: Replase **destination_name** with the name of the destination you have created when installing mock server in the SAP BTP, Cloud Foundry Runtime.
>Note: Replace **<destination_name>** with the name of the destination you have created when installing the mock server in the SAP BTP, Cloud Foundry Runtime.


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.