HsHostingAssetControllerRestTest

25

tests

0

failures

0

ignored

0.255s

duration

100%

successful

Tests

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

Standard output

2026-08-10T13:31:38.261Z  INFO 234 --- [    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-10T13:31:38.287Z  INFO 234 --- [    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-10T13:31:38.304Z  INFO 234 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Starting HsHostingAssetControllerRestTest using Java 21.0.11 with PID 234 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/mihoe_base-tx-context-seqTxId-performance-3915db90eedb)
2026-08-10T13:31:38.304Z  INFO 234 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T13:31:38.741Z  INFO 234 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T13:31:38.741Z  INFO 234 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T13:31:38.741Z  INFO 234 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms
2026-08-10T13:31:38.746Z  INFO 234 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Started HsHostingAssetControllerRestTest in 0.456 seconds (process running for 19.686)

MockHttpServletRequest:
      HTTP Method = PATCH
      Request URI = /api/hs/hosting/assets/8dfbfe85-413f-48ac-b677-1d35a699f694
       Parameters = {}
          Headers = [Content-Type:"application/json;charset=UTF-8", Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzIyOTgsImp0aSI6ImZiMGY4NTA4LWM5OGYtNGM0NS1hMWJiLTQzZWExZDU0MjBjNCJ9.gA6dYnFMQOALRqpU8qBCtBAhnxe862LYQdHV8Z_WiUNFQMc4XuR7fcrOc5IdpElvBZ8biXH6-NTZS60eqbktQyoSeQ247m1zMvhxpCW1D7Lz3M0gl3UaroT4pzgkjbFT4dl5t9o75zOlRqSf7iyKgE1hpR9K6x0Z8SOhfcpMfD8Q28cKKGqwOUdgFTqGhOB_skbrJEHqovCLnkgd1rd5eWpTk9VyoqJjMziauAw79OZqEJ7mMLMAa3HCgor1SG0OFoDiszY_UAPV22z1vC-AMBY-bpyxehqmeqnyCzfb_CmkneDuAKL49aiho0ri248KGFdp3PtcmmClxnKxSfLj0Q", 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":"9092f4a6-320e-4437-8de1-46e7b3a4be0f","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,"greylisting":false,"passenger-python":"/usr/bin/python6","letsencrypt":false}}
    Forwarded URL = null
   Redirected URL = null
          Cookies = []