Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Updated UI unit tests
  • Loading branch information
sureshanaparti committed Jul 31, 2025
commit 6808cc38c1fd0b213b691586502484b259197a7e
24 changes: 12 additions & 12 deletions ui/tests/unit/views/AutogenView.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1293,12 +1293,12 @@ describe('Views > AutogenView.vue', () => {
expect(mockAxios).toHaveBeenCalled()
expect(mockAxios).toHaveBeenLastCalledWith({
url: '/',
method: 'POST',
data: common.createDataParams({
method: 'GET',
params: {
command: 'listTestApiNames',
response: 'json',
listall: true
})
}
})
expect(param).toEqual({
name: 'testapiname',
Expand Down Expand Up @@ -1390,13 +1390,13 @@ describe('Views > AutogenView.vue', () => {
expect(mockAxios).toHaveBeenCalled()
expect(mockAxios).toHaveBeenLastCalledWith({
url: '/',
method: 'POST',
data: common.createDataParams({
method: 'GET',
params: {
command: 'listTemplates',
response: 'json',
listall: true,
templatefilter: 'executable'
})
}
})
expect(param).toEqual({
name: 'id',
Expand Down Expand Up @@ -1429,13 +1429,13 @@ describe('Views > AutogenView.vue', () => {
expect(mockAxios).toHaveBeenCalled()
expect(mockAxios).toHaveBeenLastCalledWith({
url: '/',
method: 'POST',
data: common.createDataParams({
method: 'GET',
params: {
command: 'listIsos',
response: 'json',
listall: true,
isofilter: 'executable'
})
}
})
expect(param).toEqual({
name: 'id',
Expand Down Expand Up @@ -1468,13 +1468,13 @@ describe('Views > AutogenView.vue', () => {
expect(mockAxios).toHaveBeenCalled()
expect(mockAxios).toHaveBeenLastCalledWith({
url: '/',
method: 'POST',
data: common.createDataParams({
method: 'GET',
params: {
command: 'listHosts',
response: 'json',
listall: true,
type: 'routing'
})
}
})
expect(param).toEqual({
name: 'id',
Expand Down
Loading