HsHostingAssetControllerRestTest

25

tests

0

failures

0

ignored

0.291s

duration

100%

successful

Tests

Test Method name Duration Result
shouldDeleteHostingAsset() shouldDeleteHostingAsset() 0.006s passed
[10] testCase=EMAIL_ADDRESS shouldGetListOfHostingAssets(ListTestCases)[10] 0.008s passed
[11] testCase=MARIADB_INSTANCE shouldGetListOfHostingAssets(ListTestCases)[11] 0.008s passed
[12] testCase=MARIADB_USER shouldGetListOfHostingAssets(ListTestCases)[12] 0.007s passed
[13] testCase=MARIADB_DATABASE shouldGetListOfHostingAssets(ListTestCases)[13] 0.008s passed
[14] testCase=PGSQL_INSTANCE shouldGetListOfHostingAssets(ListTestCases)[14] 0.009s passed
[15] testCase=PGSQL_USER shouldGetListOfHostingAssets(ListTestCases)[15] 0.009s passed
[16] testCase=PGSQL_DATABASE shouldGetListOfHostingAssets(ListTestCases)[16] 0.007s passed
[17] testCase=IPV4_NUMBER shouldGetListOfHostingAssets(ListTestCases)[17] 0.008s passed
[18] testCase=IPV6_NUMBER shouldGetListOfHostingAssets(ListTestCases)[18] 0.008s passed
[1] testCase=CLOUD_SERVER shouldGetListOfHostingAssets(ListTestCases)[1] 0.019s passed
[2] testCase=MANAGED_SERVER shouldGetListOfHostingAssets(ListTestCases)[2] 0.010s passed
[3] testCase=UNIX_USER shouldGetListOfHostingAssets(ListTestCases)[3] 0.009s passed
[4] testCase=EMAIL_ALIAS shouldGetListOfHostingAssets(ListTestCases)[4] 0.007s passed
[5] testCase=DOMAIN_SETUP shouldGetListOfHostingAssets(ListTestCases)[5] 0.008s passed
[6] testCase=DOMAIN_DNS_SETUP shouldGetListOfHostingAssets(ListTestCases)[6] 0.008s passed
[7] testCase=DOMAIN_HTTP_SETUP shouldGetListOfHostingAssets(ListTestCases)[7] 0.008s passed
[8] testCase=DOMAIN_SMTP_SETUP shouldGetListOfHostingAssets(ListTestCases)[8] 0.007s passed
[9] testCase=DOMAIN_MBOX_SETUP shouldGetListOfHostingAssets(ListTestCases)[9] 0.009s passed
shouldGetSingleHostingAssetIfFound() shouldGetSingleHostingAssetIfFound() 0.037s passed
shouldPatchHostingAsset() shouldPatchHostingAsset() 0.032s passed
shouldPostNewHostingAsset() shouldPostNewHostingAsset() 0.021s passed
shouldRejectPostIfBookingItemIsMissing() shouldRejectPostIfBookingItemIsMissing() 0.010s passed
shouldReturnNotFoundIfDeletedHostingAssetIsMissing() shouldReturnNotFoundIfDeletedHostingAssetIsMissing() 0.007s passed
shouldReturnNotFoundIfSingleHostingAssetIsMissing() shouldReturnNotFoundIfSingleHostingAssetIsMissing() 0.021s passed

Standard output

2026-08-10T14:41:06.668Z  INFO 233 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.hs.hosting.asset.HsHostingAssetControllerRestTest]: HsHostingAssetControllerRestTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T14:41:06.710Z  INFO 233 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.hs.hosting.asset.HsHostingAssetControllerRestTest

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.5.5)

2026-08-10T14:41:06.733Z  INFO 233 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Starting HsHostingAssetControllerRestTest using Java 21.0.11 with PID 233 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/mihoe_pmd-cognitive-complexity-refactorings-376268732714)
2026-08-10T14:41:06.733Z  INFO 233 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T14:41:07.203Z  INFO 233 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T14:41:07.203Z  INFO 233 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T14:41:07.203Z  INFO 233 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms
2026-08-10T14:41:07.209Z  INFO 233 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Started HsHostingAssetControllerRestTest in 0.495 seconds (process running for 21.438)

MockHttpServletRequest:
      HTTP Method = PATCH
      Request URI = /api/hs/hosting/assets/b40b82d0-86f0-479e-8d50-d89ca696e3b3
       Parameters = {}
          Headers = [Content-Type:"application/json;charset=UTF-8", Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzY0NjcsImp0aSI6Ijk5YjYyMmMxLWQ1ZmEtNDA4Ni05Yzk3LTc4NDliNWJhOGEwMiJ9.v7pvZ-5NuGzbJklUwhKceHTTjXNuDYq4iYeHGkpmg-NmecAVi0au-GM_MEL5iofPI2ApK9RUm0_CoETX2cNKy6je-bosbf2pDPTuDQ_rCXV-xA6fzf0rkzer0pMVr3ArIFfj_z-UbMF0JtFFWswSlw8pjP6S3QWonz8A5U1ncBRdZ1vigfXV0rZgZHcnMPUoXGfEYUCz6pusER0CqrHQf_t2yE_PgruGE_3Zxx4CvRvTeb5IawMXpAY7tp2MwWa6QKTndptJZ3BlfvVIP7XTdlrdyGGWWVVwLRG5klHEamuXN7Dg_C4gg8IVAx4xrwrVIQA9O7IG65Cm96oYqd2GsQ", Accept:"application/json", Content-Length:"311"]
             Body = {
    "caption": "some updated fake Domain-HTTP-Setup",
    "alarmContact.uuid": null,
    "config": {
        "autoconfig": true,
        "multiviews": true,
        "passenger": false,
        "fcgi-php-bin": null,
        "passenger-nodejs": "/usr/bin/node-js8",
        "subdomains": ["www","test"]
    }
}

    Session Attrs = {}

Handler:
             Type = net.hostsharing.hsadminng.hs.hosting.asset.HsHostingAssetController
           Method = net.hostsharing.hsadminng.hs.hosting.asset.HsHostingAssetController#patchHostingAsset(String, UUID, HsHostingAssetPatchResource)

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = null

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 200
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"application/json", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
     Content type = application/json
             Body = {"uuid":"f1d191a3-8a0d-406d-aab5-77c499dce3c2","type":"DOMAIN_HTTP_SETUP","identifier":"example.org|HTTP","caption":"some updated fake Domain-HTTP-Setup","alarmContact":null,"config":{"htdocsfallback":false,"cgi":false,"fastcgi":false,"passenger-errorpage":true,"autoconfig":true,"passenger-nodejs":"/usr/bin/node-js8","includes":false,"multiviews":true,"subdomains":["www","test"],"passenger-ruby":"/usr/bin/ruby5","indexes":false,"passenger":false,"greylisting":false,"passenger-python":"/usr/bin/python6","letsencrypt":false}}
    Forwarded URL = null
   Redirected URL = null
          Cookies = []