Skip to content

Commit

Permalink
Merge pull request #1909 from aziontech/dev
Browse files Browse the repository at this point in the history
Deploy 2024-11-14
  • Loading branch information
vinigfer authored Nov 14, 2024
2 parents 5da2aae + cf81eb7 commit c9d03cb
Show file tree
Hide file tree
Showing 220 changed files with 8,038 additions and 745 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ cypress.env.*

azion/


!azion/production
!azion/stage

azion/

src/views/Playground/PlaygroundView.vue
/cypress/downloads
#Paths added by Azion CLI
Expand Down
17 changes: 16 additions & 1 deletion azion/production/azion.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
"origin-id": 154233,
"origin-key": "8c16e835-20af-41d5-a688-cac8e6aefa94",
"name": "origin-console-feedback"
},
{
"origin-id": 162902,
"origin-key": "8b4c7f0a-6496-4a4d-8369-b39809903069",
"name": "maintaince-origin"
}
],
"rules-engine": {
Expand Down Expand Up @@ -157,6 +162,16 @@
"id": 313139,
"name": "Route API Identity Providers",
"phase": "request"
},
{
"id": 316429,
"name": "maintaince page",
"phase": "request"
},
{
"id": 318350,
"name": "Route GraphQL Accounting Queries to Manager Origin",
"phase": "request"
}
]
},
Expand All @@ -174,4 +189,4 @@
"name": "Cities - Cache"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Data Stream spec', { tags: ['@dev2', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Data Stream spec', { tags: ['@dev2', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Data Stream spec', { tags: ['@dev2', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-bigquery.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Data Stream spec', { tags: ['@dev2', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-datadog.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Data Stream spec', { tags: ['@dev2', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Data Stream spec', { tags: ['@dev2', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-ibmqradar.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Data Stream spec', { tags: ['@dev3', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-kafka.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Data Stream spec', { tags: ['@dev3', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-s3.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Data Stream spec', { tags: ['@dev3', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-splunk.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Data Stream spec', { tags: ['@dev3', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/data-stream/create-data-stream-standard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Data Stream spec', { tags: ['@dev3', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your data stream has been created')

cy.get(selectors.list.searchInput).type(dataStreamName)
cy.get(selectors.list.searchInput).type(`${dataStreamName}{enter}`)
cy.get(selectors.dataStream.list.columnName('name')).should('have.text', dataStreamName)
cy.get(selectors.dataStream.list.columnName('dataSource')).should(
'have.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Digital Certificates spec', { tags: ['@dev3'] }, () => {
cy.get(selectors.form.editPageTitle).should('have.text', 'Edit Digital Certificate')
cy.get(selectors.digitalCertificates.breadcrumbReturnToList).click()
cy.get(selectors.list.searchInput).clear()
cy.get(selectors.list.searchInput).type(digitalCertificateName)
cy.get(selectors.list.searchInput).type(`${digitalCertificateName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should('have.text', digitalCertificateName)
cy.get(selectors.list.filteredRow.statusColumn).should('have.text', 'Pending')
})
Expand Down
10 changes: 7 additions & 3 deletions cypress/e2e/domains/edit-domain.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import generateUniqueName from '../../support/utils'
let domainName
let edgeAppName

let domainEditedName

const createEdgeApplicationCase = () => {
// Arrange
edgeAppName = generateUniqueName('edgeApp')
Expand Down Expand Up @@ -52,10 +54,12 @@ describe('Domains spec', { tags: ['@dev3'] }, () => {
'The domain is now available in the Domain management section.'
)

domainEditedName = `${domainName}-edit`

// Act
cy.get(selectors.domains.fieldTextInput).should('have.value', domainName)
cy.get(selectors.domains.fieldTextInput).clear()
cy.get(selectors.domains.fieldTextInput).type(`${domainName}-edit`)
cy.get(selectors.domains.fieldTextInput).type(domainEditedName)
cy.get(selectors.domains.cnamesField).clear()
cy.get(selectors.domains.cnamesField).type(`${domainName}-edit.edge.app`)
cy.get(selectors.domains.domainUri).should('be.disabled')
Expand All @@ -66,8 +70,8 @@ describe('Domains spec', { tags: ['@dev3'] }, () => {
// Assert
cy.verifyToast('success', 'Your domain has been edited')
cy.get(selectors.domains.dataTableSearchInput).clear()
cy.get(selectors.domains.dataTableSearchInput).type(`${domainName}-edit`)
cy.get(selectors.domains.listTableBlockColumnNameRow).should('have.text', `${domainName}-edit`)
cy.get(selectors.domains.dataTableSearchInput).type(`${domainEditedName}{enter}`)
cy.get(selectors.domains.listTableBlockColumnNameRow).should('have.text', domainEditedName)
cy.get(selectors.domains.listTableBlockColumnActiveRow).should('have.text', 'Inactive')
})

Expand Down
7 changes: 4 additions & 3 deletions cypress/e2e/edge-application/add-error-response.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(fixtures.edgeApplicationName)
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
Expand All @@ -27,7 +27,8 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.list.filteredRow.column('name')).click()
}

describe('Edge Application', { tags: ['@dev4'] }, () => {
// TODO: remove xfail tag when the API v4 is fixed
describe('Edge Application', { tags: ['@dev4', '@xfail'] }, () => {
beforeEach(() => {
fixtures.edgeApplicationName = generateUniqueName('EdgeApp')
// Login
Expand Down Expand Up @@ -85,4 +86,4 @@ describe('Edge Application', { tags: ['@dev4'] }, () => {
cy.verifyToast('Resource successfully deleted')
})
})
})
})
4 changes: 2 additions & 2 deletions cypress/e2e/edge-application/add-origin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(fixtures.edgeApplicationName)
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
Expand Down Expand Up @@ -67,7 +67,7 @@ describe('Edge Application', { tags: ['@dev4'] }, () => {
cy.get(selectors.form.leavePageButton).click()

//Assert
cy.get(selectors.list.searchInput).type(fixtures.originName)
cy.get(selectors.list.searchInput).type(`${fixtures.originName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should('have.text', fixtures.originName)
})

Expand Down
58 changes: 58 additions & 0 deletions cypress/e2e/edge-application/create-device-groups.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import selectors from '../../support/selectors'
import generateUniqueName from '../../support/utils'

let fixtures = {}

const createEdgeApplicationCase = () => {
// Act
cy.get(selectors.edgeApplication.mainSettings.createButton).click()
cy.get(selectors.edgeApplication.mainSettings.nameInput).type(fixtures.edgeApplicationName)
cy.get(selectors.edgeApplication.mainSettings.addressInput).clear()
cy.get(selectors.edgeApplication.mainSettings.addressInput).type('httpbingo.org')
cy.get(selectors.form.actionsSubmitButton).click()
cy.verifyToast('success', 'Your edge application has been created')
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
)

// Act - Navigate to the created edge application
cy.get(selectors.list.filteredRow.column('name')).click()
}

describe('Edge Application Device Groups Spec', { tags: ['@dev2'] }, () => {
beforeEach(() => {
cy.login()
fixtures.edgeApplicationName = generateUniqueName('EdgeApp')
fixtures.deviceGroupName = generateUniqueName('DeviceGroup')
cy.openProduct('Edge Application')
createEdgeApplicationCase()
cy.get(selectors.edgeApplication.tabs('Device Groups')).click()
})

it('Should creeate and list device groups.', function () {
cy.get(selectors.edgeApplication.deviceGroups.createButton).click()
cy.get(selectors.edgeApplication.deviceGroups.nameInput).type(fixtures.deviceGroupName)
cy.get(selectors.edgeApplication.deviceGroups.userAgentInput).type('(Mobile)')
cy.get(selectors.form.actionsSubmitButton).click()

//assert
cy.verifyToast('success', 'Your Device Group has been created')
cy.get(selectors.list.searchInput).type(`${fixtures.deviceGroupName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should('have.text', fixtures.deviceGroupName)
})

afterEach(() => {
// Delete the edge application
cy.deleteEntityFromList({
entityName: fixtures.edgeApplicationName,
productName: 'Edge Application'
}).then(() => {
cy.verifyToast('Resource successfully deleted')
})
})
})
4 changes: 2 additions & 2 deletions cypress/e2e/edge-application/create-function-instance.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(fixtures.edgeApplicationName)
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
Expand Down Expand Up @@ -82,7 +82,7 @@ describe('Edge Application', { tags: ['@dev4', '@xfail'] }, () => {
// Assert
cy.verifyToast('success', 'Your Function has been created')
cy.get(selectors.list.searchInput).clear()
cy.get(selectors.list.searchInput).type(fixtures.functionInstanceName)
cy.get(selectors.list.searchInput).type(`${fixtures.functionInstanceName}{enter}`)
cy.get(selectors.edgeApplication.functionsInstance.firstFilteredNameRow).should(
'have.text',
fixtures.functionInstanceName
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/edge-application/edit-cache-setting.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(fixtures.edgeApplicationName)
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
Expand Down Expand Up @@ -58,7 +58,7 @@ describe('Edge Application', { tags: ['@dev4', '@xfail'] }, () => {
cy.get(selectors.form.actionsSubmitButton).click()
cy.verifyToast('success', 'Cache Settings successfully created')

cy.get(selectors.list.searchInput).type(fixtures.cacheSettingName)
cy.get(selectors.list.searchInput).type(`${fixtures.cacheSettingName}{enter}`)

cy.get(selectors.list.filteredRow.column('name')).should('have.text', fixtures.cacheSettingName)
cy.get(selectors.list.filteredRow.column('browserCache')).should(
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/edge-application/edit-function-instance.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(fixtures.edgeApplicationName)
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
Expand Down Expand Up @@ -83,7 +83,7 @@ describe('Edge Application', { tags: ['@dev4', '@xfail'] }, () => {
// Assert - Verify the instance was created
cy.verifyToast('success', 'Your Function has been created')
cy.get(selectors.list.searchInput).clear()
cy.get(selectors.list.searchInput).type(fixtures.functionInstanceName)
cy.get(selectors.list.searchInput).type(`${fixtures.functionInstanceName}{enter}`)
cy.get(selectors.edgeApplication.functionsInstance.firstFilteredNameRow).should(
'have.text',
fixtures.functionInstanceName
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/edge-application/edit-origin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.form.actionsCancelButton).click()

// Assert - Verify the edge application was created
cy.get(selectors.list.searchInput).type(fixtures.edgeApplicationName)
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should(
'have.text',
fixtures.edgeApplicationName
Expand Down Expand Up @@ -68,7 +68,7 @@ describe('Edge Application', { tags: ['@dev4', '@xfail'] }, () => {
cy.get(selectors.form.leavePageButton).click()

//Assert
cy.get(selectors.list.searchInput).type(fixtures.originName)
cy.get(selectors.list.searchInput).type(`${fixtures.originName}{enter}`)
cy.get(selectors.list.filteredRow.column('name')).should('have.text', fixtures.originName)

//edit origin
Expand All @@ -84,7 +84,7 @@ describe('Edge Application', { tags: ['@dev4', '@xfail'] }, () => {

//assert
cy.get(selectors.list.searchInput).clear()
cy.get(selectors.list.searchInput).type(fixtures.originName)
cy.get(selectors.list.searchInput).type(`${fixtures.originName}{enter}`)
cy.get(selectors.list.filteredRow.column('addresses')).should('have.text', 'test2.com')
})

Expand Down
Loading

0 comments on commit c9d03cb

Please sign in to comment.