Exemple #1
0
        public void Should_not_match_invalid_company_url(string provided)
        {
            var task = new SourceLink.Create.BitBucketServer.CreateTask();

            Assert.NotEqual("https://bitbucket.company.com/projects/SMN/repos/company.innernamespace.project/raw/*?at={commit}", task.ConvertUrl(provided));
        }
Exemple #2
0
        public void Should_return_url_in_canonical_form_for_BitBucketServer(string provided)
        {
            var task = new SourceLink.Create.BitBucketServer.CreateTask();

            Assert.Equal("https://internal.bitbucketserver.local/projects/sol123/repos/reallyawesomeproject/raw/*?at={commit}", task.ConvertUrl(provided));
        }
Exemple #3
0
        public void Should_return_url_in_canonical_form_for_BitBucket_with_company_url(string provided)
        {
            var task = new SourceLink.Create.BitBucketServer.CreateTask();

            Assert.Equal("https://bitbucket.company.com/projects/SMN/repos/company.innernamespace.project/raw/*?at={commit}", task.ConvertUrl(provided));
        }