HsHostingAssetControllerRestTest

25

tests

0

failures

0

ignored

0.275s

duration

100%

successful

Tests

Test Method name Duration Result
shouldDeleteHostingAsset() shouldDeleteHostingAsset() 0.005s passed
[10] testCase=EMAIL_ADDRESS shouldGetListOfHostingAssets(ListTestCases)[10] 0.008s passed
[11] testCase=MARIADB_INSTANCE shouldGetListOfHostingAssets(ListTestCases)[11] 0.007s passed
[12] testCase=MARIADB_USER shouldGetListOfHostingAssets(ListTestCases)[12] 0.007s 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.007s passed
[18] testCase=IPV6_NUMBER shouldGetListOfHostingAssets(ListTestCases)[18] 0.008s passed
[1] testCase=CLOUD_SERVER shouldGetListOfHostingAssets(ListTestCases)[1] 0.018s 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.008s passed
[5] testCase=DOMAIN_SETUP shouldGetListOfHostingAssets(ListTestCases)[5] 0.007s 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.008s passed
shouldGetSingleHostingAssetIfFound() shouldGetSingleHostingAssetIfFound() 0.036s passed
shouldPatchHostingAsset() shouldPatchHostingAsset() 0.037s passed
shouldPostNewHostingAsset() shouldPostNewHostingAsset() 0.017s passed
shouldRejectPostIfBookingItemIsMissing() shouldRejectPostIfBookingItemIsMissing() 0.009s passed
shouldReturnNotFoundIfDeletedHostingAssetIsMissing() shouldReturnNotFoundIfDeletedHostingAssetIsMissing() 0.006s passed
shouldReturnNotFoundIfSingleHostingAssetIsMissing() shouldReturnNotFoundIfSingleHostingAssetIsMissing() 0.020s passed

Standard output

2026-08-10T16:28:06.062Z  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-10T16:28:06.086Z  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-10T16:28:06.103Z  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/master-fc613b4dfd67)
2026-08-10T16:28:06.104Z  INFO 235 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T16:28:06.548Z  INFO 235 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T16:28:06.549Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T16:28:06.549Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms
2026-08-10T16:28:06.555Z  INFO 235 --- [    Test worker] h.h.h.a.HsHostingAssetControllerRestTest : Started HsHostingAssetControllerRestTest in 0.466 seconds (process running for 19.163)

MockHttpServletRequest:
      HTTP Method = PATCH
      Request URI = /api/hs/hosting/assets/d5685c49-f4d1-47fc-82ce-88b909276ad6
       Parameters = {}
          Headers = [Content-Type:"application/json;charset=UTF-8", Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzODI4ODYsImp0aSI6IjNkODA5MDkwLWYxODAtNDA5Ni04OWRkLWUzYzU1MTkzZWI3NCJ9.s4kwlb8Ed7R6n-fwmzu17SGAW3ERSRO0mY9KzRWvXihp3XbODRdGqpXquiJAMuxpN5o0-uJMFvabrVA2jvGG3lrqeR-omLM0yqRcuOh48ME5rXfdCbPyE7iifzCvNw_tjPHGhoHKUwhgo5JziaQmO92YxE5AD_kGCG2J37ciBKAv7Y5-Blx2GAhHmPKWBipMudjt2QjmPuLpk1pyiEu_BfZ1JWyHpe8M_LS9ot3F0z3AJWNSfyTLVAot570_1pVPZa8rDYBNLYo69ESlmL_9uzjz3qewsHVVbA6ONjRlF8uQAExjUIjJCORGCkwojAkDm1CaRLAeIjXRo7fM4e5Gsg", 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":"57be5b1c-165d-4dbf-a4b2-ddf958bed92d","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 = []