HsHostingAssetControllerRestTest

25

tests

0

failures

0

ignored

0.397s

duration

100%

successful

Tests

Test Method name Duration Result
shouldDeleteHostingAsset() shouldDeleteHostingAsset() 0.007s passed
[10] testCase=EMAIL_ADDRESS shouldGetListOfHostingAssets(ListTestCases)[10] 0.011s passed
[11] testCase=MARIADB_INSTANCE shouldGetListOfHostingAssets(ListTestCases)[11] 0.011s passed
[12] testCase=MARIADB_USER shouldGetListOfHostingAssets(ListTestCases)[12] 0.011s passed
[13] testCase=MARIADB_DATABASE shouldGetListOfHostingAssets(ListTestCases)[13] 0.010s passed
[14] testCase=PGSQL_INSTANCE shouldGetListOfHostingAssets(ListTestCases)[14] 0.011s passed
[15] testCase=PGSQL_USER shouldGetListOfHostingAssets(ListTestCases)[15] 0.013s passed
[16] testCase=PGSQL_DATABASE shouldGetListOfHostingAssets(ListTestCases)[16] 0.011s passed
[17] testCase=IPV4_NUMBER shouldGetListOfHostingAssets(ListTestCases)[17] 0.011s passed
[18] testCase=IPV6_NUMBER shouldGetListOfHostingAssets(ListTestCases)[18] 0.010s passed
[1] testCase=CLOUD_SERVER shouldGetListOfHostingAssets(ListTestCases)[1] 0.030s passed
[2] testCase=MANAGED_SERVER shouldGetListOfHostingAssets(ListTestCases)[2] 0.014s passed
[3] testCase=UNIX_USER shouldGetListOfHostingAssets(ListTestCases)[3] 0.013s passed
[4] testCase=EMAIL_ALIAS shouldGetListOfHostingAssets(ListTestCases)[4] 0.013s passed
[5] testCase=DOMAIN_SETUP shouldGetListOfHostingAssets(ListTestCases)[5] 0.012s passed
[6] testCase=DOMAIN_DNS_SETUP shouldGetListOfHostingAssets(ListTestCases)[6] 0.013s passed
[7] testCase=DOMAIN_HTTP_SETUP shouldGetListOfHostingAssets(ListTestCases)[7] 0.015s passed
[8] testCase=DOMAIN_SMTP_SETUP shouldGetListOfHostingAssets(ListTestCases)[8] 0.014s passed
[9] testCase=DOMAIN_MBOX_SETUP shouldGetListOfHostingAssets(ListTestCases)[9] 0.011s passed
shouldGetSingleHostingAssetIfFound() shouldGetSingleHostingAssetIfFound() 0.043s passed
shouldPatchHostingAsset() shouldPatchHostingAsset() 0.042s passed
shouldPostNewHostingAsset() shouldPostNewHostingAsset() 0.024s passed
shouldRejectPostIfBookingItemIsMissing() shouldRejectPostIfBookingItemIsMissing() 0.013s passed
shouldReturnNotFoundIfDeletedHostingAssetIsMissing() shouldReturnNotFoundIfDeletedHostingAssetIsMissing() 0.009s passed
shouldReturnNotFoundIfSingleHostingAssetIsMissing() shouldReturnNotFoundIfSingleHostingAssetIsMissing() 0.025s passed

Standard output

2026-08-10T15:02:10.635Z  INFO 235 --- [    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-10T15:02:10.707Z  INFO 235 --- [    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-10T15:02:10.755Z  INFO 235 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Starting HsHostingAssetControllerRestTest using Java 21.0.11 with PID 235 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/mihoe_base-tx-context-seqTxId-performance-3915db90eedb)
2026-08-10T15:02:10.755Z  INFO 235 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T15:02:11.369Z  INFO 235 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T15:02:11.369Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T15:02:11.370Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms
2026-08-10T15:02:11.376Z  INFO 235 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Started HsHostingAssetControllerRestTest in 0.66 seconds (process running for 20.677)

MockHttpServletRequest:
      HTTP Method = PATCH
      Request URI = /api/hs/hosting/assets/7e889d4b-1cea-4f79-8d56-3234ccd56e09
       Parameters = {}
          Headers = [Content-Type:"application/json;charset=UTF-8", Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzc3MzEsImp0aSI6ImE2Yzg5MzA2LTBlOTYtNDMxMS1hYTEwLTU5NTlkMzc4ZjUzNSJ9.jo0RWiLXyDVnFN6ap8uLmtHqdQRQ6MiZHXB3gaEldm0vRCZxh3soxue_5uqkpvhGodqh8Q0LH2qq0tLCjjij9Lm-jiYEWhJ1PvILwh15qGTxzh2Ru03h_iYj0MY-ZpWNpq6tKbxURkPbhZ_JThDzGmopMN1BqDh80lL8ftSV3IJc_PibKZ30nANU03o5NboYjcWbkjDDsrDp2HuNTo0T2IRRpnNvOKeHOZTIjnW-ZiSMmq5G4jS9maqbf4VUawghRH1n-83gWisNTig0kO97UJguoJ_pcfyBAJUsMnkiHTMmHSjwmlL_Fb2Lv5Rf9Y4rTMfehDGoGCUQAeN9COaBPg", 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":"e98297b3-8983-4819-9dc9-8a3164f18b0c","type":"DOMAIN_HTTP_SETUP","identifier":"example.org|HTTP","caption":"some updated fake Domain-HTTP-Setup","alarmContact":null,"config":{"htdocsfallback":false,"cgi":false,"fastcgi":false,"autoconfig":true,"passenger-errorpage":true,"passenger-nodejs":"/usr/bin/node-js8","includes":false,"multiviews":true,"subdomains":["www","test"],"passenger-ruby":"/usr/bin/ruby5","indexes":false,"passenger":false,"passenger-python":"/usr/bin/python6","greylisting":false,"letsencrypt":false}}
    Forwarded URL = null
   Redirected URL = null
          Cookies = []