Bonobo.Git.Server.Test.Integration.ClAndWeb.MsysgitIntegrationTests.RepoAnonPushRespectsGlobalSettings C# (CSharp) Méthode

RepoAnonPushRespectsGlobalSettings() private méthode

private RepoAnonPushRespectsGlobalSettings ( ) : void
Résultat void
        public void RepoAnonPushRespectsGlobalSettings()
        {
            ForAllGits(git =>
            {
                var repo_id = ITH.CreateRepositoryOnWebInterface(RepositoryName);
                AllowAnonRepoClone(repo_id, true);
                CloneRepoAnon(git, true);
                CreateIdentity(git);
                SetRepoPushTo(repo_id, RepositoryPushMode.Global);

                CreateRandomFile(Path.Combine(RepositoryDirectory, "file.txt"), 0);
                RunGitOnRepo(git, "add .").ExpectSuccess();
                RunGitOnRepo(git, "commit -m\"Aw yeah!\"").ExpectSuccess();

                SetAnonPush(false);
                PushFiles(git, false);

                SetAnonPush(true);
                PushFiles(git, true);
            });
        }