package com.atlassian.bitbucket.mesh.git.hosting;

import static com.atlassian.bitbucket.mesh.git.hosting.GitPackets.FLUSH_PACKET;

public class GitTestData {

    public static final String DELIM_PACKET = "0001";
    public static final String DONE = "0009done\n";

    public static final String V1_CLONE_INPUT =
            "006fwant b98d767b54cedf8448e101a25b16aa44084bef59 multi_ack_detailed no-done side-band-64k thin-pack ofs-delta\n" +
                    "0032want b98d767b54cedf8448e101a25b16aa44084bef59\n" +
                    FLUSH_PACKET +
                    DONE;
    public static final String V1_FETCH_INPUT =
            "0054want 74730d410fcb6603ace96f1dc55ea6196122532d multi_ack side-band-64k ofs-delta\n" +
                    "0032want 7d1665144a3a975c05f1f43902ddaf084e784dbe\n" +
                    "0032want 5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n" +
                    FLUSH_PACKET +
                    "0032have 7e47fe2bd8d01d481f44d7af0531bd93d3b21c01\n" +
                    "0032have 74730d410fcb6603ace96f1dc55ea6196122532d\n" +
                    FLUSH_PACKET;
    public static final String V1_PUSH_INPUT =
            "0096b6f8d4e1a4d1bcfb22c1f1c0cb30c715b4be9ce4 447891b8a73693d01ebfc47d81338e5c9b3747cc refs/heads/master\u0000 report-status side-band-64k agent=git/1.8.4.3" +
                    FLUSH_PACKET +
            "PACK\u0000\u0000\u0000\u0002\u0000\u0000\u000001EF\0001\u0003�\u000Fx���1\u000E\u0002!\u0010@ўSЛ�\u0019�] 1���C�0d7��\u0006���x\u0002��W��D4��c�\"sq�\u000B�\fl!��\u001C\u0004g��'#fR���9t���$\u0018)c⒌a,���\u0002;�\u0012%\t,��{,G\u04CF��(���ԾI���.��ű����<�Q�\u001A\t�#�~�'@\u0000�պ�!�~\u0510>�\u0007�\u001EK��\u00013\u0001*0��\u001AW\u001A��}f��\u04FB\n" +
                    "��x�����q�S���^�����3(d�q��7z�\u000B\u0000�\u0004\u000B\u0006wQP��}-殝���\u0007\u0010:[|<'lx�st��8��\u0015\u0000\t\u001C\u0001��$v��RL\u0016�ܖ\n" +
                    "Ǔ]\\���g";
    public static final String V1_SHALLOW_CLONE_NEGOTIATION_INPUT =
            "007bwant 38815e5e1bb1f943e09372d951cff6e69ea9d185 multi_ack_detailed no-done side-band-64k thin-pack include-tag ofs-delta\n" +
                    "0032want 38815e5e1bb1f943e09372d951cff6e69ea9d185\n" +
                    "000cdeepen 1";
    public static final String V1_SHALLOW_CLONE_INPUT =
            "007bwant 38815e5e1bb1f943e09372d951cff6e69ea9d185 multi_ack_detailed no-done side-band-64k thin-pack include-tag ofs-delta\n" +
                    "0032want 38815e5e1bb1f943e09372d951cff6e69ea9d185\n" +
                    "000cdeepen 1" +
                    "0000" +
                    "0009done\n";
    public static final String V1_SHALLOW_FETCH_INPUT =
            "0054want 74730d410fcb6603ace96f1dc55ea6196122532d multi_ack side-band-64k ofs-delta\n" +
                    "0032want 7d1665144a3a975c05f1f43902ddaf084e784dbe\n" +
                    "0032want 5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n" +
                    "000cdeepen 1" +
                    FLUSH_PACKET +
                    "0032have 7e47fe2bd8d01d481f44d7af0531bd93d3b21c01\n" +
                    "0032have 74730d410fcb6603ace96f1dc55ea6196122532d\n" +
                    FLUSH_PACKET;
    public static final String V1_REFS_INPUT = FLUSH_PACKET;

    public static final String V2_LS_REFS_INPUT =
            "0014command=ls-refs\n" +
                    "0024agent=git/2.17.0.775.ge144d126d\n" +
                    DELIM_PACKET +
                    "0009peel\n" +
                    "000csymrefs\n" +
                    FLUSH_PACKET;
    public static final String V2_FETCH_INPUT =
            "0012command=fetch\n" +
                    "0024agent=git/2.17.0.775.ge144d126d\n" +
                    DELIM_PACKET +
                    "000ethin-pack\n" +
                    "0010no-progress\n" +
                    "0010include-tag\n" +
                    "000eofs-delta\n" +
                    "0032want 7d1665144a3a975c05f1f43902ddaf084e784dbe\n" +
                    "0032have 5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n" +
                    FLUSH_PACKET;
    public static final String V2_CLONE_INPUT =
            "0012command=fetch\n" +
                    "0024agent=git/2.17.0.775.ge144d126d\n" +
                    DELIM_PACKET +
                    "000ethin-pack\n" +
                    "0010no-progress\n" +
                    "000eofs-delta\n" +
                    "0032want 7d1665144a3a975c05f1f43902ddaf084e784dbe\n" +
                    "0032want 5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n" +
                    DONE +
                    FLUSH_PACKET;
    public static final String V2_SHALLOW_CLONE_INPUT =
            "0012command=fetch\n" +
                    "0024agent=git/2.17.0.775.ge144d126d\n" +
                    DELIM_PACKET +
                    "000ethin-pack\n" +
                    "0010no-progress\n" +
                    "0010include-tag\n" +
                    "000eofs-delta\n" +
                    "000ddeepen 1\n" +
                    "0032want 7d1665144a3a975c05f1f43902ddaf084e784dbe\n" +
                    DONE +
                    FLUSH_PACKET;
    public static final String V2_SHALLOW_FETCH_INPUT =
            "0012command=fetch\n" +
                    "0024agent=git/2.17.0.775.ge144d126d\n" +
                    DELIM_PACKET +
                    "000ethin-pack\n" +
                    "0010no-progress\n" +
                    "0010include-tag\n" +
                    "000eofs-delta\n" +
                    "000ddeepen 1\n" +
                    "0035shallow be05fe05259aba1bfaf8a106c1942f19e775a68d\n" +
                    "0032want 7d1665144a3a975c05f1f43902ddaf084e784dbe\n" +
                    "0032have 5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n" +
                    FLUSH_PACKET;
}
