共计 2018 个字符,预计需要花费 6 分钟才能阅读完成。
The Kyma mock application contains lightweight substitutes for SAP applications to ease the development and testing of extension and integration scenarios based on Varkes.
什么是 Kyma Mock 利用?它们是 SAP 利用轻量级的替代物,为了便于开发和测试基于 Varkes 的扩大和集成场景而生。
Together with SAP BTP, Kyma runtime, it allows for efficient implementation of application extensions without the need to access the real SAP applications during development.
应用 Mock 利用,咱们在利用扩大实现时,就无需拜访实在的 SAP 利用了。
Mock 利用的代码仓库地址:https://github.com/SAP-sample…
进入 Kyma 控制台,创立一个新的 namespace,取名 dev:
Namespaces separate objects inside a Kubernetes cluster. The concept is similar to folders in a file system. Each Kubernetes cluster has a default namespace to begin with.
Kyma namespace 相当于文件系统里文件夹的概念,ABAP 里的 package.
进入 dev namespace,Deploy new workload->Upload YAML:
YAML 文件抉择如下门路的 k8s.yaml:
采纳同样的办法,将 kyma.yaml 也进行 deploy:
方才咱们 deploy 到 Kyma runtime 的 kyma.yaml 里,定义了一条 API Rule, 部署胜利后,能够在 Kyma console 的 Discovery and Network 里看到:
点击 host 列的超链接:https://commerce.c-46d70f2.ky…
能看到如下页面:
In this step, you will create a System in the SAP BTP which will be used to pair the mock application to the Kyma runtime. This step will be performed at the Global account level of your SAP BTP account.
应用 Global 账号,创立一个零碎。
点击 Register System 按钮:
零碎名称保护成 commerce-mock, 零碎类型抉择为 SAP Commerce Cloud:
Create a Formation
In this step, you will create a Formation. A Formation is used to connect one or more Systems created in the SAP BTP to a runtime. This step will be performed at the Global account level of your SAP BTP account.
创立一个 Formation,用于将 SAP BTP 里创立的零碎同某个 runtime 连接起来。
Select Subaccount 字段抉择本人的 subaccount,System 抉择刚刚创立的 commerce-mock:
Step 6: Pair an application
The pairing process will establish a trust between the Commerce mock application and in this case the SAP Kyma runtime.
Pairing 流程将在 Commerce mock 利用和 SAP Kyma runtime 建设 trust.
Once the pairing is complete, the registration of APIs and business events can be performed.
Pairing 流程实现后,API 和 业务事件的注册就能够发展了。
This process allow developers to utilize the APIs and business events with the authentication aspects handled automatically.
回到 SAP Commerce mock 利用的界面。点击 Connect,这里须要输出一个 token:
Token 从 System 面板里能够取得:
胜利建设连贯:
点击 Register All 按钮,注册来自 Mock 利用的所有 API 和事件:
注册胜利:
当初回到 Kyma console,能看到 Applications/Systems 面板下多进去一个状态为 SERVING 的利用。
更多 Jerry 的原创文章,尽在:” 汪子熙 ”: