at 23.05-pre 864 B view raw
1import ./make-test-python.nix ({ pkgs, lib, package ? pkgs.hbase, ... }: 2{ 3 name = "hbase-standalone"; 4 5 meta = with lib.maintainers; { 6 maintainers = [ illustris ]; 7 }; 8 9 nodes = { 10 hbase = { pkgs, ... }: { 11 services.hbase-standalone = { 12 enable = true; 13 inherit package; 14 # Needed for standalone mode in hbase 2+ 15 # This setting and standalone mode are not suitable for production 16 settings."hbase.unsafe.stream.capability.enforce" = "false"; 17 }; 18 environment.systemPackages = with pkgs; [ 19 package 20 ]; 21 }; 22 }; 23 24 testScript = '' 25 start_all() 26 hbase.wait_for_unit("hbase.service") 27 hbase.wait_until_succeeds("echo \"create 't1','f1'\" | sudo -u hbase hbase shell -n") 28 assert "NAME => 'f1'" in hbase.succeed("echo \"describe 't1'\" | sudo -u hbase hbase shell -n") 29 ''; 30})