-
-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add adopters section to case study page (#2232)
Co-authored-by: Akshat Nema <[email protected]>%0ACo-authored-by: akshatnema <[email protected]>%0ACo-authored-by: Lukasz Gornicki <[email protected]>
- Loading branch information
1 parent
1c23a16
commit 355d1a3
Showing
7 changed files
with
157 additions
and
4 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
- companyName: Reiffeisen Bank | ||
useCase: Continuous Integration and Continuous Delivery (CI/CD) pipeline based on GitOps to deploy a topology built on Async API definitions using a Kubernetes operator to an Apache Pulsar cluster. | ||
resources: | ||
- title: Video - From an AsyncAPI Definition to a Deployed Pulsar Topology Via GitOps | ||
link: https://www.youtube.com/watch?v=_MwzLZMwFN8 | ||
|
||
- companyName: LEGO Group | ||
useCase: Broker management, where developers do not access the management console themselves, but rely on uploading AsyncAPI documents to a self service API that provisions access and topics specified in documents. | ||
resources: | ||
- title: Video - Documentation as Configuration for Management of Apache Pulsar | ||
link: https://www.youtube.com/watch?v=m8I0fYjx6Cc | ||
|
||
- companyName: LEGO Group | ||
useCase: Define, document and distribute event-driven APIs. Ensuring consistency and governance | ||
resources: | ||
- title: Video - Cross-Domain Events with AsyncAPI and AWS | ||
link: https://www.youtube.com/watch?v=qjarcJQVLOg | ||
|
||
- companyName: Bank of New Zealand | ||
useCase: Decentralized company-wide governance strategy for API. A self service for publishing APIs and docs. | ||
resources: | ||
- title: "Video - Self-service Events & Decentralised Governance with AsyncAPI: A Real World Example" | ||
link: https://www.confluent.io/events/kafka-summit-apac-2021/self-service-events-and-decentralised-governance-with-asyncapi-a-real-world/ | ||
|
||
- companyName: Zora Robotics | ||
useCase: Documenting lot products public MQTT API and building a developers portal. | ||
resources: | ||
- title: Video - Buliding and managing an extensive API for Robotics and loT | ||
link: https://www.youtube.com/watch?v=yjHgT0n2BtA | ||
- title: Docs - Buliding and managing an extensive API for Robotics and loT | ||
link: https://docs.zorabots.be/dev-mqtt-docs/latest/index.html | ||
|
||
- companyName: Walmart | ||
useCase: Managing a central API Hub for internal teams. Using AsyncAPI for events discoverability an visibility in a single place. AsyncAPI also enabled company-wide governance on asynchronous APIs. | ||
resources: | ||
- title: Video - Time For AsyncAPI Specification | ||
link: https://www.youtube.com/watch?v=SxTpGRaNIPo | ||
|
||
- companyName: eBay | ||
useCase: Enabling partners to build with eBay through asynchronous communication. Public AsyncAPI documents enable code generation and faster integration. It also enables governance and standardisation. | ||
resources: | ||
- title: "Video - AsyncAPI 2.0: Enabling the Event-Driven World" | ||
link: https://www.youtube.com/watch?v=SxTpGRaNIPo | ||
- title: "Article - AsyncAPI 2.0: Enabling the Event-Driven World" | ||
link: https://innovation.ebayinc.com/tech/engineering/asyncapi-2-0-enabling-the-event-driven-world/ | ||
- title: Docs - Overview of Notification API with public AsyncAPI documents | ||
link: https://developer.ebay.com/api-docs/commerce/notification/overview.html |
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
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,14 +1,41 @@ | ||
import Casestudies from "../../../../pages/casestudies"; | ||
import MockApp from "../../../utils/MockApp"; | ||
import {mount} from 'cypress/react'; | ||
import { mount } from 'cypress/react'; | ||
import AdoptersList from "../../../../config/adopters.json" | ||
|
||
describe('Test for Case Study Pages', () => { | ||
it('renders correctly', () => { | ||
mount( | ||
<MockApp> | ||
<Casestudies /> | ||
</MockApp> | ||
); | ||
cy.get('[data-testid="CaseStudy-main"]').should('exist'); | ||
cy.get('[data-testid="CaseStudy-card"]').should('exist'); | ||
cy.get('[data-testid="CaseStudy-main"]').should('exist'); | ||
cy.get('[data-testid="CaseStudy-card"]').should('exist'); | ||
}); | ||
|
||
it('Adopters section renders correctly', () => { | ||
mount( | ||
<MockApp> | ||
<Casestudies /> | ||
</MockApp> | ||
); | ||
cy.get('[data-testid="Adopters"]').should('have.length', AdoptersList.length); | ||
|
||
cy.get('table') | ||
.should('exist') | ||
.within(() => { | ||
// Check table headers | ||
cy.get('th').eq(0).should('have.text', 'Company name'); | ||
cy.get('th').eq(1).should('have.text', 'Use Case'); | ||
cy.get('th').eq(2).should('have.text', 'Resources'); | ||
|
||
// Check table data | ||
cy.get('tbody tr').should('have.length', AdoptersList.length); | ||
AdoptersList.forEach((entry, index) => { | ||
cy.get('tbody tr').eq(index).find('td').eq(0).should('have.text', entry.companyName); | ||
cy.get('tbody tr').eq(index).find('td').eq(1).should('have.text', entry.useCase); | ||
}); | ||
}); | ||
}) | ||
}); |
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { promises: { readFile, writeFile } } = require('fs'); | ||
const { convertToJson } = require('../utils'); | ||
const { resolve } = require('path'); | ||
|
||
module.exports = async function buildAdoptersList() { | ||
try { | ||
const AdoptersContent = await readFile('config/adopters.yml', 'utf-8'); | ||
const jsonContent = convertToJson(AdoptersContent); | ||
|
||
await writeFile( | ||
resolve(__dirname, '../../config', 'adopters.json'), | ||
JSON.stringify(jsonContent) | ||
); | ||
} catch (err) { | ||
console.error(err); | ||
throw err; | ||
} | ||
}; |
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