fixes after code-review
This commit is contained in:
parent
a840337a54
commit
9bd8c7b54e
@ -118,8 +118,8 @@ create trigger hs_hosting_asset_type_hierarchy_check_tg
|
|||||||
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS hs_hosting_asset_unixuser_system_id_seq
|
CREATE SEQUENCE IF NOT EXISTS hs_hosting_asset_unixuser_system_id_seq
|
||||||
AS integer
|
AS integer
|
||||||
MINVALUE 100000000
|
MINVALUE 1000000
|
||||||
MAXVALUE 199999999
|
MAXVALUE 9999999
|
||||||
NO CYCLE
|
NO CYCLE
|
||||||
OWNED BY NONE;
|
OWNED BY NONE;
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@ class HsUnixUserHostingAssetValidatorUnitTest {
|
|||||||
.identifier("abc00-temp")
|
.identifier("abc00-temp")
|
||||||
.caption("some test UnixUser with invalid properties")
|
.caption("some test UnixUser with invalid properties")
|
||||||
.config(ofEntries(
|
.config(ofEntries(
|
||||||
entry("SSD hard quota", 100),
|
entry("SSD hard quota", 60000),
|
||||||
entry("SSD soft quota", 200),
|
entry("SSD soft quota", 70000),
|
||||||
entry("HDD hard quota", 100),
|
entry("HDD hard quota", 100),
|
||||||
entry("HDD soft quota", 200),
|
entry("HDD soft quota", 200),
|
||||||
entry("shell", "/is/invalid"),
|
entry("shell", "/is/invalid"),
|
||||||
@ -126,7 +126,8 @@ class HsUnixUserHostingAssetValidatorUnitTest {
|
|||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result).containsExactlyInAnyOrder(
|
assertThat(result).containsExactlyInAnyOrder(
|
||||||
"'UNIX_USER:abc00-temp.config.SSD soft quota' is expected to be at most 100 but is 200",
|
"'UNIX_USER:abc00-temp.config.SSD hard quota' is expected to be at most 51200 but is 60000",
|
||||||
|
"'UNIX_USER:abc00-temp.config.SSD soft quota' is expected to be at most 60000 but is 70000",
|
||||||
"'UNIX_USER:abc00-temp.config.HDD hard quota' is expected to be at most 0 but is 100",
|
"'UNIX_USER:abc00-temp.config.HDD hard quota' is expected to be at most 0 but is 100",
|
||||||
"'UNIX_USER:abc00-temp.config.HDD soft quota' is expected to be at most 100 but is 200",
|
"'UNIX_USER:abc00-temp.config.HDD soft quota' is expected to be at most 100 but is 200",
|
||||||
"'UNIX_USER:abc00-temp.config.homedir' is readonly but given as '/is/read-only'",
|
"'UNIX_USER:abc00-temp.config.homedir' is readonly but given as '/is/read-only'",
|
||||||
|
Loading…
Reference in New Issue
Block a user