[
https://issues.apache.org/jira/browse/AMBARI-26562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prabhjyot Singh updated AMBARI-26562:
-------------------------------------
Description:
h3. *Summary*
After upgrading Ambari Web to *jQuery 3.7.1* and updating
{{{}jquery-migrate.js{}}}, one of the Kerberos-related unit tests started
failing due to changes in the way jQuery constructs AJAX request objects. The
test performs a strict {{deepEqual}} comparison against the AJAX payload, which
is no longer stable across jQuery versions.
h3. *Affected Test*
{code:java}
ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js{code}
Failing assertion
([https://ci-hadoop.apache.org/job/Ambari/job/Ambari-PreCommit-GitHub-PR/job/PR-4091/2/consoleFull):]
{code:java}
HeadlessChrome 0.0.0 (Linux 0.0.0) Ambari Web Unit tests
test/controllers/main/admin/kerberos/step2_controller_test
App.KerberosWizardStep2Controller #createKerberosAdminSession() App.ajax.send
should be called FAILED
AssertionError: expected { Object (name, sender, ...) } to deeply equal
{ Object (name, sender, ...) }
at Context.<anonymous>
(test/controllers/main/admin/kerberos/step2_controller_test.js:839:29) {code}
h3.
was:
h3. *Summary*
After upgrading Ambari Web to *jQuery 3.7.1* and updating
{{{}jquery-migrate.js{}}}, one of the Kerberos-related unit tests started
failing due to changes in the way jQuery constructs AJAX request objects. The
test performs a strict {{deepEqual}} comparison against the AJAX payload, which
is no longer stable across jQuery versions.
h3. *Affected Test*
ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js
{{}}
Failing assertion
(https://ci-hadoop.apache.org/job/Ambari/job/Ambari-PreCommit-GitHub-PR/job/PR-4091/2/consoleFull):
{code:java}
HeadlessChrome 0.0.0 (Linux 0.0.0) Ambari Web Unit tests
test/controllers/main/admin/kerberos/step2_controller_test
App.KerberosWizardStep2Controller #createKerberosAdminSession() App.ajax.send
should be called FAILED
AssertionError: expected { Object (name, sender, ...) } to deeply equal
{ Object (name, sender, ...) }
at Context.<anonymous>
(test/controllers/main/admin/kerberos/step2_controller_test.js:839:29) {code}
h3.
> Fix UT failure in Kerberos Step2 Controller
> -------------------------------------------
>
> Key: AMBARI-26562
> URL: https://issues.apache.org/jira/browse/AMBARI-26562
> Project: Ambari
> Issue Type: Bug
> Reporter: Prabhjyot Singh
> Priority: Major
>
> h3. *Summary*
> After upgrading Ambari Web to *jQuery 3.7.1* and updating
> {{{}jquery-migrate.js{}}}, one of the Kerberos-related unit tests started
> failing due to changes in the way jQuery constructs AJAX request objects. The
> test performs a strict {{deepEqual}} comparison against the AJAX payload,
> which is no longer stable across jQuery versions.
> h3. *Affected Test*
> {code:java}
> ambari-web/test/controllers/main/admin/kerberos/step2_controller_test.js{code}
> Failing assertion
> ([https://ci-hadoop.apache.org/job/Ambari/job/Ambari-PreCommit-GitHub-PR/job/PR-4091/2/consoleFull):]
> {code:java}
> HeadlessChrome 0.0.0 (Linux 0.0.0) Ambari Web Unit tests
> test/controllers/main/admin/kerberos/step2_controller_test
> App.KerberosWizardStep2Controller #createKerberosAdminSession() App.ajax.send
> should be called FAILED
> AssertionError: expected { Object (name, sender, ...) } to deeply equal
> { Object (name, sender, ...) }
> at Context.<anonymous>
> (test/controllers/main/admin/kerberos/step2_controller_test.js:839:29) {code}
> h3.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]