Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Companies
    • Conferences
    • Courses
    1. Home
    2. Bogopo
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Bogopo

    @Bogopo

    1
    Reputation
    29707
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Bogopo Follow

    Best posts made by Bogopo

    • RE: CSharp -Selenium - MSTEST - Running several methods in the same browser
      [TestCleanup()]
      

      is performed after each test, so thats why your browser is closed after finishing the 1st test

      If you want to close your browser after finishing all the tests in "SeleniumTest" class you should use [ClassCleanup()] instead of [TestCleanup()]

      posted in Automated Testing
      Bogopo
      Bogopo

    Latest posts made by Bogopo

    • Deployment with manual confirmation of each change

      I am new to CI/CD and gitlab. I have a python project for parsing latex book to html and uploading those htmls to online course platform. Without CI/CD my pipeline would look like this:

        1. Fix latex source files of my book
        1. Run scripts for creating html files (some artifacts from my changes)
        1. Running script which compares old and new version of each html files and ask for a confirmation to upload those changes to online platform.

      I can handle first step with gitlab version control system. I've learned to build artifacts for step 2 with gitlab CI pipeline. My question is: How can I perform 3rd stage of my pipeline (checking what is updated and confirming what should be uploaded/deployed) with gitlab CD?

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • Is there a "tracing" service that comes with Istio?

      This page: https://istio.io/latest/docs/tasks/observability/gateways/#option-2-insecure-access-http

      Shows how to setup external visibility to the telemetry addons for Istio. One of those is shown to be "tracing". It instructs to create a virtual service like this:

      apiVersion: networking.istio.io/v1alpha3
      kind: VirtualService
      metadata:
        name: tracing-vs
        namespace: istio-system
      spec:
        hosts:
        - "tracing.${INGRESS_DOMAIN}"
        gateways:
        - tracing-gateway
        http:
        - route:
          - destination:
              host: tracing
              port:
                number: 80
      

      This seems to imply that there is a service that can be installed that holds traces. But all I can find is docs on how to integrate with Jaegar, Lightstep and Zipkin. Nothing for a standalone tracing service.

      Is there a such a thing? And if so is there any docs on how to install it?

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • failed to acquire lease: subnet "10.244.0.0/16" specified in the flannel net config doesn't contain "192.168.0.0/24"

      I'm trying to configure Kubernetes with web dashboard. I use these steps:

      swapoff -a
      

      Remove following line from /etc/fstab

      /swap.img       none    swap    sw      0       0
      

      then run these shell commands:

      sudo apt update
      sudo apt install docker.io
      sudo systemctl start docker
      sudo systemctl enable docker 
      sudo apt install apt-transport-https curl
      curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
      echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" >> ~/kubernetes.list
      sudo mv ~/kubernetes.list /etc/apt/sources.list.d
      sudo apt update
      sudo apt install kubeadm kubelet kubectl kubernetes-cni
      

      sudo kubeadm init --pod-network-cidr=192.168.0.0/16

      mkdir -p $HOME/.kube
      sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
      sudo chown $(id -u):$(id -g) $HOME/.kube/config

      I applied this configuration:

      kind: ClusterRoleBinding
      apiVersion: rbac.authorization.k8s.io/v1
      metadata:
        name: flannel-fix
      roleRef:
        apiGroup: rbac.authorization.k8s.io
        kind: ClusterRole
        name: flannel
      subjects:
        - kind: ServiceAccount
          name: flannel
          namespace: kube-flannel
      
      kubectl create -f 
      

      But I get:

      Error registering network: failed to acquire lease: subnet "10.244.0.0/16" specified in the flannel net config doesn't contain "192.168.0.0/24" PodCIDR of the "ubuntukubernetis1" node
      

      Do you know what should be the correct configuration?

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • RE: k3s: Eviction manager: attempting to reclaim" resourceName="ephemeral-storage

      This is because of the https://devops.stackexchange.com/a/16085/18965 safeguard a new pod exhausting the space on your hard disk, and the metrics are a bit overly conservative. You can change the eviction manager settings by providing a --kubelet-arg that overrides the https://devops.stackexchange.com/a/16085/18965 . This can be persisted by providing https://devops.stackexchange.com/q/16070/18965 .

      Like this,

      kubelet-arg:
        - "eviction-minimum-reclaim=imagefs.available=2%,nodefs.available=2%"
        - "eviction-hard=memory.available

      https://github.com/k3s-io/k3s/issues/5488#issuecomment-1147992468

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • RE: Moving a file (with encrypted token) after building a docker on Jenkins

      You shouldn't bake these kinds of credentials into the docker container. Instead, you should use some kinda secret storage to hold the secret and load it before you start the application.

      Basically, when the docker container starts, whatever started the container should securely retrieve the credentials and set it as an environment variable or the container should fetch the secret.

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • Creating container image without docker

      Is it possible to build a container image as a simple user account on a system which does not have docker or podman installed? In other words, is there a user-space tool/application which can build an image that could run on a different system which supports OCI containers, such as AKS, etc.

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • RE: How come my hostname isn't set to the FQDN with cloud-init when using `prefer_fqdn_over_hostname`?

      https://bugs.launchpad.net/cloud-init/+bug/1966533

      I was getting silent failures because the hostname was

      host-10-2-65-89.openstack.build.
      

      Instead of

      host-10-2-65-89.openstack.build
      

      What actually happens is,

      $ sudo hostname host-10-2-65-89.openstack.build.
      hostname: the specified hostname is invalid
      

      Background, what I was actually doing was using Terraform,

      fqdn: "${fqdn}"
      

      And then setting the fqdn like this,

      fqdn = openstack_networking_port_v2.port_company.dns_assignment[0].fqdn
      

      But the problem is the terraform was return the actual FQDN,

      host-10-2-65-89.openstack.build.
      

      But you can't provide that to hostname. My solution was to remove the dot (.) with https://www.terraform.io/language/functions/trimsuffix

      fqdn = trimsuffix(
        openstack_networking_port_v2.port_company.dns_assignment[0].fqdn,
        "."
      )
      
      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • How to get all open Merge Requests using git command line?

      I need to get all open Merge requests by author and if possible within a time frame. Tried using this command for Github where it works fine -

      git ls-remote origin 'pull/*/head'
      

      But in gitlab, this is not returning anything, please suggest to get all MRs, if possible status = 'opened', 'closed', 'merged' and time frame.

      posted in Continuous Integration and Delivery (CI
      Bogopo
      Bogopo
    • RE: Is there any way to bypass the enchantment limit on Minecraft?

      Depending on your use-case, you might get away with the https://minecraft.fandom.com/wiki/Commands/enchant command. On Java Edition, the level can be any integer between 0 and 2147483647.

      The weakness of this approach is that it targets a player, who would need to be holding the item in their hand to receive the enchantment. This may or may not affect you.

      If you need to use /give, you may need to create a mod and add a new command that allows greater enchantment levels. I recommend learning https://files.minecraftforge.net/net/minecraftforge/forge/ . The Forge team maintains a good https://docs.minecraftforge.net/en/1.19.x/gettingstarted/ to teach you how to create basic mods. It's not a Java tutorial though, so if you don't know how to program, you may need to start elsewhere. If you have a specific question about mod creation, that would be better suited as a different question.


      It looks like the changes to /give happened in 1.17. According to the https://minecraft.fandom.com/wiki/Player.dat_format#History of the format page, 1.17 was when it was clamped to 255.

      posted in Game Testing
      Bogopo
      Bogopo
    • RE: How can I use my save files for TBOI after switching to other Steam account?

      Each account has its own save file

      Did you try overwriting what's in the "My Games" folder? This is just a backup. The actually used game save files are located at;

      Program Files\Steam\userdata[steam account ID]\250900\remote

      on Windows, and at one of:

      /home/[username]/.steam/userdata/[steam account ID]/250900/remote
      /installpath/steam/userdata/[steam account ID]/250900/remote 
      

      where: /installpath ~ /usr/games/steam (depends on distribution, check e.g. dpkg -L steam)

      on Linux.

      250900 here is the sequential gameID in Steam's database.

      There are various ways of finding out which accountID is which account. The simplest is logging in via a browser and looking at the GET request for the profile page. The URL should contain the accountID, also known as 'steamID' (it's an alphanumeric sequence of around 16 digits).

      Since you have two steam accounts, each Steam account will have its own folder.

      They are stored there and only backed up to the "My Games" location. Make a separate backup of these files, then try copying your old files over them.

      Sources: https://steamcommunity.com/app/250900/discussions/0/1639790664938175128/ , https://www.maketecheasier.com/find-steam-id/

      posted in Game Testing
      Bogopo
      Bogopo