Exemple #1
0
        public void ValidateTestEnvVariables()
        {
            var profile = JiraProfileLoader.GetProfile();

            Assert.NotNull(profile);
            Assert.NotEqual("", profile.Url);
            Assert.NotEqual("", profile.User);
            Assert.NotEqual("", profile.Pass);
        }
Exemple #2
0
        public async Task JiraProfileCreateUpdate()
        {
            var profile = JiraProfileLoader.GetProfile();
            var service = await JiraProfileService.Create(profile);

            Assert.NotNull(service);
            Assert.True(service.DbPath.Exists);

            var p = service.GetProfile();

            Assert.NotNull(p);
            Assert.Equal(profile.Pass, p.Pass);
            Assert.Equal(profile.User, p.User);
            Assert.Equal(profile.Url, p.Url);

            service.Dispose();

            var isClean = await JiraProfileLoader.CleanProfile(profile.ProfileName);

            Assert.True(isClean);
        }