Skip to content
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
28 changes: 15 additions & 13 deletions learn/on-premise/extensions/mb-integrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,48 @@ id: ""
### Integrate Mockingbird with WME Platform

- Make sure MockingBird domain is accessible with in developers and WME networks.
- Add the **loadBalancerSourceRanges** key in the **one-time-setup-values.yaml** file and replace [WHITELIST-IP-RANGE] property with concern network CIDR ranges
- Add the **loadBalancerSourceRanges** key in the **one-time-setup-values.yaml** file and replace ${WHITELIST-IP-RANGE} property with concern network CIDR ranges
- Example ["1.2.3.4/32", "1.2.3.5/24"]
- Make sure that [MOCKINGBIRD-DOMAIN], [MOCKINGBIRD-STATIC-IP] as replaced with proper values.


- Make sure that ${} $${MOCKINGBIRD-DOMAIN} ${MOCKINGBIRD-STATIC-IP} as replaced with proper values.

```yaml
global:
domainName: [MOCKINGBIRD-DOMAIN]
domainName: ${MOCKINGBIRD-DOMAIN}
apimock-ingress-nginx:
controller:
service:
loadBalancerIP: [MOCKINGBIRD-STATIC-IP]
loadBalancerSourceRanges: [WHITELIST-IP-RANGE]
loadBalancerIP: ${MOCKINGBIRD-STATIC-IP}
loadBalancerSourceRanges: ${WHITELIST-IP-RANGE}
```

```bash
helm upgrade mockingbird [HELM-PATCH-PACKAGE] -n mockingbird -f one-time-setup-values.yaml
helm upgrade mockingbird ${HELM-PACKAGE} -n mockingbird -f one-time-setup-values.yaml
```

### Pairing up WME Platform and MockingBird Platform

- Here is the command to run from WME Pltform instance to integrate both the platforms
- Here is the command to run from WME Platform instance to integrate both the platforms

```bash
bash /usr/local/content/wme/wme-installer/<version>/wme-installer.sh --register_mocking_bird
bash /usr/local/content/wme/wme-installer/<latest-version>/wme-installer.sh --register_mocking_bird
```
- After entering the domain name of MockingBird the output screen will be as follows

![mb](/learn/assets/consul_mb_props.png)](/learn/assets/consul_mb_props.png)

![mb](/learn/assets/consul_mb_props.png)
### Enable Mocking feature from WME Platform Launchpad team portal

1) Go to http://PLATFORM_DOMAIN/launchpad, select the "Teams" tab on the right nav and click on the permissions icon for the team that you want to enable APIMock server access as shown in the below screen.

![mb](/learn/assets/launchpad_mb_permission.png)](/learn/assets/launchpad_mb_permission.png)
![mb](/learn/assets/launchpad_mb_permission.png)

2) Select the project role for which the API Mock Server feature need to be enabled.

![mb](/learn/assets/launchpad_mb_enable.png)](/learn/assets/launchpad_mb_enable.png)
![mb](/learn/assets/launchpad_mb_enable.png)

3) Save the above changes as shown below.

![mb](/learn/assets/launchpad_mb_save.png)](/learn/assets/launchpad_mb_save.png)
![mb](/learn/assets/launchpad_mb_save.png)